From 47b2436eca5ba253d451aa524bf3287a8c79b0aa Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 19 Sep 2022 19:43:30 +0800 Subject: [PATCH] refactor(nc-gui): rename stack_meta to meta --- packages/nc-gui/components/smartsheet/Kanban.vue | 4 ++-- packages/nc-gui/composables/useKanbanViewData.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 1fc1547c30..929ded134c 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -108,13 +108,13 @@ function onMoveCallback(event: any) { async function onMoveStack(event: any) { if (event.moved) { const { oldIndex, newIndex } = event.moved - const { grp_column_id, stack_meta } = kanbanMetaData.value + const { grp_column_id, meta: stack_meta } = kanbanMetaData.value groupingFieldColOptions.value[oldIndex].order = newIndex groupingFieldColOptions.value[newIndex].order = oldIndex const stackMetaObj = JSON.parse(stack_meta as string) || {} stackMetaObj[grp_column_id as string] = groupingFieldColOptions.value await updateKanbanMeta({ - stack_meta: stackMetaObj, + meta: stackMetaObj, }) } } diff --git a/packages/nc-gui/composables/useKanbanViewData.ts b/packages/nc-gui/composables/useKanbanViewData.ts index a9a4aec8c2..49f383a887 100644 --- a/packages/nc-gui/composables/useKanbanViewData.ts +++ b/packages/nc-gui/composables/useKanbanViewData.ts @@ -113,7 +113,7 @@ export function useKanbanViewData( groupingField.value = groupingFieldColumn.value.title! - const { grp_column_id, stack_meta } = kanbanMetaData.value + const { grp_column_id, meta: stack_meta } = kanbanMetaData.value stackMetaObj.value = stack_meta ? JSON.parse(stack_meta as string) : {} @@ -184,7 +184,7 @@ export function useKanbanViewData( if (grp_column_id) { stackMetaObj.value[grp_column_id] = groupingFieldColOptions.value await updateKanbanMeta({ - stack_meta: stackMetaObj.value, + meta: stackMetaObj.value, }) } }