Remove unused code and change selected table faster in data section

This commit is contained in:
Andrew Kingston 2023-04-18 08:51:00 +01:00
parent a4515e1162
commit 140729b1d7
2 changed files with 1 additions and 22 deletions

View File

@ -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}
<EditTablePopover {table} />

View File

@ -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