diff --git a/openbis_ng_ui/src/js/components/common/grid/GridController.js b/openbis_ng_ui/src/js/components/common/grid/GridController.js index 7cbb895a66da0854b470695f4020f3cb869de35b..b0eddc4a9f795af47aae8cc72e5438e5e94ef220 100644 --- a/openbis_ng_ui/src/js/components/common/grid/GridController.js +++ b/openbis_ng_ui/src/js/components/common/grid/GridController.js @@ -597,6 +597,8 @@ export default class GridController { } async handleFilterChange(column, filter) { + const { local } = this.context.getState() + await this.context.setState(state => { const newFilters = { ...state.filters @@ -619,9 +621,13 @@ export default class GridController { this.loadTimerId = null } - this.loadTimerId = setTimeout(async () => { + if (local) { await this.load() - }, 500) + } else { + this.loadTimerId = setTimeout(async () => { + await this.load() + }, 500) + } } async handleColumnVisibleChange(name) {