diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue index 55cc86b8e9..abd0573159 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue @@ -21,7 +21,7 @@ const { showAll, hideAll, saveOrUpdate, -} = useViewColumns(activeView, meta, false, () => reloadDataHook.trigger()) +} = useViewColumns(activeView, meta, () => reloadDataHook.trigger()) watch( () => (activeView.value as any)?.id, diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index cd90ac9fe6..26e159418e 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -100,8 +100,10 @@ provide(ChangePageInj, changePage) provide(ReadonlyInj, !isUIAllowed('xcDatatableEditable')) reloadViewDataHook?.on(async () => { + if (!isPublicView) { + loadAggCommentsCount() + } await loadData() - loadAggCommentsCount() }) const selectCell = (row: number, col: number) => { diff --git a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue index d4d9bfb4ca..f817b260b4 100644 --- a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue @@ -1,18 +1,20 @@