From 32228d542a4c5b69baf337821be74b78baf01675 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 21 Apr 2022 08:41:53 +0200 Subject: [PATCH] fixed crash #268 --- .../web/src/tableeditor/ColumnsConstraintEditorModal.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/tableeditor/ColumnsConstraintEditorModal.svelte b/packages/web/src/tableeditor/ColumnsConstraintEditorModal.svelte index 2c97c1f2..c3939174 100644 --- a/packages/web/src/tableeditor/ColumnsConstraintEditorModal.svelte +++ b/packages/web/src/tableeditor/ColumnsConstraintEditorModal.svelte @@ -113,10 +113,10 @@ label: 'Choose column', value: '', }, - ...tableInfo.columns.map(col => ({ + ...(tableInfo?.columns?.map(col => ({ label: col.columnName, value: col.columnName, - })), + })) || []), ]} /> {/key}