From fbda3f4cb95a4210a465fb8d56113e4e91867e6f Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 28 Mar 2023 00:56:39 +0300 Subject: [PATCH] fix: set initial selectedStackTitle as null for kanban Signed-off-by: mertmit --- packages/nc-gui/components/smartsheet/Kanban.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 29eef66177..f9ad01f829 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -313,7 +313,7 @@ const openNewRecordFormHookHandler = async () => { const newRow = await addEmptyRow() // preset the grouping field value newRow.row = { - [groupingField.value]: selectedStackTitle.value, + [groupingField.value]: selectedStackTitle.value === '' ? null : selectedStackTitle.value, } // increase total count by 1 countByStack.value.set(null, countByStack.value.get(null)! + 1)