tweak(platform): Updated onOpenChange code style (#8187)

This commit is contained in:
Swifty
2024-09-26 17:09:01 +02:00
committed by GitHub
parent 41e3c4f6bd
commit beedc4b971

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>