From 2e4693e324438acd390cc17466a8c269d15b8378 Mon Sep 17 00:00:00 2001 From: Francisco Rivera Date: Sat, 20 Jan 2024 08:12:13 -0500 Subject: [PATCH] fix: allow menu selector to filter to non-truthy values like column=0 --- packages/inputs/src/Menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/inputs/src/Menu.js b/packages/inputs/src/Menu.js index 521ee6df..a7ea0214 100644 --- a/packages/inputs/src/Menu.js +++ b/packages/inputs/src/Menu.js @@ -82,7 +82,7 @@ export class Menu extends MosaicClient { source: this, schema: { type: 'point' }, value, - predicate: value ? eq(column, literal(value)) : null + predicate: (value !== '' && value !== undefined) ? eq(column, literal(value)) : null }); } else if (isParam(selection)) { selection.update(value);