diff --git a/autogpt_platform/frontend/src/components/edit/control/BlocksControl.tsx b/autogpt_platform/frontend/src/components/edit/control/BlocksControl.tsx index e09017fefd..cfea589964 100644 --- a/autogpt_platform/frontend/src/components/edit/control/BlocksControl.tsx +++ b/autogpt_platform/frontend/src/components/edit/control/BlocksControl.tsx @@ -77,11 +77,7 @@ export const BlocksControl: React.FC = ({ return ( { - if (!open) { - resetFilters(); - } - }} + onOpenChange={(open) => open || resetFilters()} >