diff --git a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte index 182ac49314..ebfd5f11a3 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte @@ -25,7 +25,7 @@ text={table.name} selected={$isActive("./table/:tableId") && $tables.selected?._id === table._id} - on:click={() => $goto(`./table/${table._id}`)} + on:click={() => tables.select(table._id)} > {#if table._id !== TableNames.USERS} diff --git a/packages/frontend-core/src/fetch/DataFetch.js b/packages/frontend-core/src/fetch/DataFetch.js index f7e1b856d4..f68b37dcca 100644 --- a/packages/frontend-core/src/fetch/DataFetch.js +++ b/packages/frontend-core/src/fetch/DataFetch.js @@ -372,27 +372,6 @@ export default class DataFetch { })) } - /** - * Refreshes the datasource's definition and schema - */ - async refreshDefinition() { - const { datasource } = this.options - - // Fetch datasource definition and determine feature flags - const definition = await this.getDefinition(datasource) - - // Fetch and enrich schema - let schema = this.getSchema(datasource, definition) - schema = this.enrichSchema(schema) - - // Update state - this.store.update(state => ({ - ...state, - definition, - schema, - })) - } - /** * Determines whether there is a next page of data based on the state of the * store