mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 02:56:01 +00:00
This commit is contained in:
@@ -54,6 +54,7 @@ export abstract class GridDisplay {
|
||||
sortable = false;
|
||||
filterable = false;
|
||||
editable = false;
|
||||
isLoadedCorrectly = true;
|
||||
|
||||
setColumnVisibility(uniquePath: string[], isVisible: boolean) {
|
||||
const uniqueName = uniquePath.join('.');
|
||||
|
||||
@@ -29,6 +29,11 @@ export class TableGridDisplay extends GridDisplay {
|
||||
this.table = this.cache.tables.basetbl;
|
||||
if (!this.table) {
|
||||
this.loadTableIntoCache('basetbl', tableName);
|
||||
this.isLoadedCorrectly = false;
|
||||
} else {
|
||||
if (!this.table.columns || this.table.columns.length == 0) {
|
||||
this.isLoadedCorrectly = false;
|
||||
}
|
||||
}
|
||||
|
||||
this.columns = this.getDisplayColumns(this.table, []);
|
||||
|
||||
Reference in New Issue
Block a user