From 3aa68bbd9ae677fc801ca44ec575ff23c0c674d2 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Thu, 26 Sep 2024 10:16:38 +0200 Subject: [PATCH] Updated onOpenChange code style --- .../frontend/src/components/edit/control/BlocksControl.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()} >