diff --git a/source/components/datatable/datasource/rest.mjs b/source/components/datatable/datasource/rest.mjs
index 14d2e205f2b2fc2272e6209dc1861b57cea622f2..a73b280a0c8524c2211ac6e8d55509854c113c22 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) => {