Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: prevent selecting undefined when deselect (multiselect plugin) (#4896)

Shahmir Varqha8d832439a836
diff --git a/frontend/src/plugins/impl/MultiselectPlugin.tsx b/frontend/src/plugins/impl/MultiselectPlugin.tsx
index 78546c66fd..ab726100f8 100644
--- a/frontend/src/plugins/impl/MultiselectPlugin.tsx
+++ b/frontend/src/plugins/impl/MultiselectPlugin.tsx
@@ -78,7 +78,7 @@ export const Multiselect = ({
}, [options, searchQuery]);
const handleValueChange = (newValues: string[] | null) => {
- if (!newValues) {
+ if (!newValues || newValues.length === 0) {
setValue([]);
return;
}