perspective mongo fixes

This commit is contained in:
Jan Prochazka
2022-10-02 17:48:03 +02:00
parent 1d85a17533
commit 23b345c898
4 changed files with 6 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ export class PerspectiveCacheTable {
pureName: string;
bindingColumns?: string[];
dataColumns: string[];
allColumns?: boolean;
loadedAll: boolean;
loadedRows: any[] = [];
bindingGroups: { [bindingKey: string]: PerspectiveBindingGroup } = {};
@@ -103,7 +104,7 @@ export class PerspectiveCache {
);
let res = this.tables[tableKey];
if (res && _difference(props.dataColumns, res.dataColumns).length > 0) {
if (res && _difference(props.dataColumns, res.dataColumns).length > 0 && !res.allColumns) {
dbg('Delete cache because incomplete columns', props.pureName, res.dataColumns);
// we have incomplete cache