Updated onOpenChange code style

This commit is contained in:
SwiftyOS
2024-09-26 10:16:38 +02:00
parent b4097f3a51
commit 3aa68bbd9a

View File

@@ -77,11 +77,7 @@ export const BlocksControl: React.FC<BlocksControlProps> = ({
return (
<Popover
open={pinBlocksPopover ? true : undefined}
onOpenChange={(open) => {
if (!open) {
resetFilters();
}
}}
onOpenChange={(open) => open || resetFilters()}
>
<Tooltip delayDuration={500}>
<TooltipTrigger asChild>