diff --git a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
index d9def682dc..ef8872c1ca 100644
--- a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
+++ b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
@@ -37,13 +37,19 @@
{/if}
- {#each [...Object.keys(table.views || {})].sort() as viewName, idx (idx)}
+ {#each [...Object.entries(table.views || {})].sort() as [viewName, view], idx (idx)}
$goto(`./view/${encodeURIComponent(viewName)}`)}
+ on:click={() => {
+ if (view.version === 2) {
+ $goto(`./view/v2/${encodeURIComponent(viewName)}`)
+ } else {
+ $goto(`./view/${encodeURIComponent(viewName)}`)
+ }
+ }}
selectedBy={$userSelectedResourceMap[viewName]}
>
+ import { views } from "stores/backend"
+ import { Grid } from "@budibase/frontend-core"
+ import { API } from "api"
+
+ $: tableId = $views.selected?.id
+
+
+
+
+
+
+