Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: shared base issue

mertmit9e7e902121de
diff --git a/packages/nc-gui/pages/index/[typeOrId]/[baseId]/index/index/[viewId]/[[viewTitle]].vue b/packages/nc-gui/pages/index/[typeOrId]/[baseId]/index/index/[viewId]/[[viewTitle]].vue
index 3072686a55..052fcd67d1 100644
--- a/packages/nc-gui/pages/index/[typeOrId]/[baseId]/index/index/[viewId]/[[viewTitle]].vue
+++ b/packages/nc-gui/pages/index/[typeOrId]/[baseId]/index/index/[viewId]/[[viewTitle]].vue
@@ -16,9 +16,11 @@ watch(
(viewId) => {
/** wait until table list loads since meta load requires table list **/
until(tables)
- .toMatch((tables) => tables.length > 0)
+ .toMatch((tables) => {
+ return tables.length > 0
+ })
.then(() => {
- getMeta(route.params.baseId as string, viewId as string, undefined, undefined, undefined, true)
+ getMeta(baseStore.baseId as string, viewId as string, undefined, undefined, undefined, true)
})
},
{ immediate: true },
diff --git a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
index c5d475911d..087dcbfcba 100644
--- a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
+++ b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
@@ -241,11 +241,7 @@ export class ExpandedFormPage extends BasePage {
await expect(this.rootPage.getByTestId('nc-expanded-form-duplicate')).toBeVisible();
await expect(this.rootPage.getByTestId('nc-expanded-form-delete')).toBeVisible();
} else {
- if (!isEE()) {
- await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toBeVisible();
- } else {
- await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toHaveCount(0);
- }
+ await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toHaveCount(0);
await expect(this.rootPage.getByTestId('nc-expanded-form-duplicate')).toHaveCount(0);
await expect(this.rootPage.getByTestId('nc-expanded-form-delete')).toHaveCount(0);
}