Remove unused code and change selected table faster in data section
This commit is contained in:
parent
a4515e1162
commit
140729b1d7
|
@ -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} />
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue