From adb0ee6150af4d65ba7036e75f230f780c76871d Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Mon, 24 Jun 2024 09:51:09 +0200 Subject: [PATCH] fix: the rest datasource should not reload if the query is undefined #211 --- source/components/datatable/datasource/rest.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/components/datatable/datasource/rest.mjs b/source/components/datatable/datasource/rest.mjs index 14d2e205f..a73b280a0 100644 --- a/source/components/datatable/datasource/rest.mjs +++ b/source/components/datatable/datasource/rest.mjs @@ -386,7 +386,10 @@ function initFilter() { ); this[filterObserverSymbol] = new Observer(() => { - const query = filterControl.getOption("query", undefined); + const query = filterControl.getOption("query"); + if ( query===undefined) { + return; + } this.setParameters({ query: query }); this.fetch() .then((response) => { -- GitLab