perspectives: fixed incremental loading

This commit is contained in:
Jan Prochazka
2022-07-21 17:14:27 +02:00
parent 2080a23b69
commit 8f1343bc42
2 changed files with 5 additions and 3 deletions

View File

@@ -40,7 +40,9 @@ export class PerspectiveCache {
tables: { [tableKey: string]: PerspectiveCacheTable } = {};
getTableCache(props: PerspectiveDataLoadProps) {
const tableKey = this.stableStringify(_omit(props, ['range', 'bindingValues', 'dataColumns']));
const tableKey = this.stableStringify(
_pick(props, ['schemaName', 'pureName', 'bindingColumns', 'databaseConfig', 'orderBy'])
);
let res = this.tables[tableKey];
if (res && _difference(props.dataColumns, res.dataColumns).length > 0) {