This commit is contained in:
Jan Prochazka
2020-05-06 22:03:16 +02:00
parent 54fb4d214d
commit d2fa296139
4 changed files with 46 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
import _ from 'lodash';
import { GridConfig, GridCache, GridConfigColumns } from './GridConfig';
import { GridConfig, GridCache, GridConfigColumns, createGridCache } from './GridConfig';
import { ForeignKeyInfo, TableInfo, ColumnInfo, DbType, EngineDriver, NamedObjectInfo } from '@dbgate/types';
import { parseFilter, getFilterType } from '@dbgate/filterparser';
import { filterName } from './filterName';
@@ -86,7 +86,8 @@ export abstract class GridDisplay {
reload() {
this.setCache((cache) => ({
...cache,
// ...cache,
...createGridCache(),
refreshTime: new Date().getTime(),
}));
}