diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 88c2d3b07a..8204fde333 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -108,12 +108,8 @@ const expandFormClick = async (e: MouseEvent, row: RowType) => { } async function onMove(event: any, stackKey: string) { - // const { newIndex, element, oldIndex } = event.added || event.moved || event.removed if (event.added) { - // TODO: change current groupingField to stackKey - console.log(event.added.element) - console.log(stackKey) - // TODO: groupField + // TODO: update groupingField const groupingField = 'singleSelect2' const ele = event.added.element ele.row[groupingField] = stackKey @@ -125,34 +121,37 @@ openNewRecordFormHook?.on(async () => { const newRow = await addEmptyRow() expandForm(newRow) }) - -const stacks = ref([]) -stacks.value = Object.keys(formattedKanbanData) -watch(formattedKanbanData, (v) => { - if (v) { - stacks.value = Object.keys(v).map((o, id) => ({ key: o, id })) - } -})