From 2ffb23df02e63f56096c0c22b8cac6ddea779e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 26 Feb 2026 21:26:33 +0100 Subject: [PATCH] Update packages/catalog-client/src/CatalogClient.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Fredrik Adelöw --- packages/catalog-client/src/CatalogClient.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/catalog-client/src/CatalogClient.ts b/packages/catalog-client/src/CatalogClient.ts index a671a155d3..404c980128 100644 --- a/packages/catalog-client/src/CatalogClient.ts +++ b/packages/catalog-client/src/CatalogClient.ts @@ -249,8 +249,11 @@ export class CatalogClient implements CatalogApi { } filterPredicate = query; if (filter !== undefined) { - const converted = convertFilterToPredicate(filter); - filterPredicate = { $all: [filterPredicate, converted] }; + const filterValue = this.getFilterValue(filter); + if (filterValue && Object.keys(filterValue).length > 0) { + const converted = convertFilterToPredicate(filter); + filterPredicate = { $all: [filterPredicate, converted] }; + } } }