split components - prepare for #3

This commit is contained in:
Jan Prochazka
2020-05-10 07:31:11 +02:00
parent 8f8dd15c04
commit 1e91abf37b
3 changed files with 82 additions and 54 deletions

View File

@@ -26,9 +26,10 @@ export class TableGridDisplay extends GridDisplay {
) {
super(config, setConfig, cache, setCache, driver);
this.table = this.cache.tables.basetbl;
const baseTblCacheKey = `basetbl_${tableName.schemaName}_${tableName.pureName}`;
this.table = this.cache.tables[baseTblCacheKey];
if (!this.table) {
this.loadTableIntoCache('basetbl', tableName);
this.loadTableIntoCache(baseTblCacheKey, tableName);
this.isLoadedCorrectly = false;
} else {
if (!this.table.columns || this.table.columns.length == 0) {