From 387b7682c015ead52d1da7fd470f9ab29f1c2800 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 19 Aug 2022 18:08:19 +0800 Subject: [PATCH] fix(gui-v2): missing column after reordering issue --- packages/nc-gui-v2/composables/useViewColumns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useViewColumns.ts b/packages/nc-gui-v2/composables/useViewColumns.ts index 81851548c7..fe5f718de6 100644 --- a/packages/nc-gui-v2/composables/useViewColumns.ts +++ b/packages/nc-gui-v2/composables/useViewColumns.ts @@ -98,7 +98,7 @@ export function useViewColumns(view: Ref | undefined, meta: ComputedRe } const saveOrUpdate = async (field: any, index: number) => { - if ((isPublic.value || isSharedBase) && fields.value) { + if (isPublic.value && fields.value) { fields.value[index] = field meta.value.columns = meta.value?.columns?.map((column: ColumnType) => { if (column.id === field.fk_column_id) {