v
const { loadTables, baseUrl, isXcdbBase } = useBase()
+ const { loadViews } = useViewsStore()
+
const { openedViewsTab, viewsByTable } = storeToRefs(useViewsStore())
const workspaceId = computed(() => route.value.params.typeOrId as string)
@@ -80,10 +82,11 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v
baseIdOrBaseId = route.value.params.baseId as string
}
- const views = viewsByTable.value.get(table.id as string) ?? []
+ await getMeta(table.id as string, (route.value.params?.viewId as string) !== table.id)
- getMeta(table.id as string, (route.value.params?.viewId as string) !== table.id)
+ await loadViews({ tableId: table.id as string })
+ const views = viewsByTable.value.get(table.id as string) ?? []
if (openedViewsTab.value !== 'view' && views.length && views[0].id) {
await navigateTo({
path: `/${workspaceIdOrType}/${baseIdOrBaseId}/${table?.id}/${views[0].id}/${openedViewsTab.value}`,
diff --git a/tests/playwright/tests/db/general/multiFieldEditor.spec.ts b/tests/playwright/tests/db/general/multiFieldEditor.spec.ts
new file mode 100644
index 0000000000..cd7d8f6379
--- /dev/null
+++ b/tests/playwright/tests/db/general/multiFieldEditor.spec.ts
@@ -0,0 +1,21 @@
+import test from '@playwright/test';
+import { DashboardPage } from '../../../pages/Dashboard';
+import { GridPage } from '../../../pages/Dashboard/Grid';
+import setup from '../../../setup';
+
+test.describe('MultiFieldEditor', () => {
+ let grid: GridPage, dashboard: DashboardPage;
+ let context: any;
+
+ test.beforeEach(async ({ page }) => {
+ context = await setup({ page, isEmptyProject: true });
+ dashboard = new DashboardPage(page, context.base);
+ grid = dashboard.grid;
+
+ await dashboard.treeView.createTable({ title: 'sheet1', baseTitle: context.base.title });
+ });
+
+ test.skip('Hide Columns', async () => {
+ //
+ });
+});