Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: radio button single select should no-op on reclick (#2457)

gbirman2e13867b9bd2
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/filter-primitives.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/filter-primitives.tsx
index 12c4632d83..64d4168e09 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/filter-primitives.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/filter-primitives.tsx
@@ -67,7 +67,8 @@ export const FilterSelect = (props: FilterSelectProps) => {
if (multiple()) {
props.onChange(selected as Option[]);
} else {
- props.onChange(selected ? [selected as Option] : []);
+ if (!selected) return;
+ props.onChange([selected as Option]);
}
};