From 0c28573fe319ef8f35f17158704b1751124f58f9 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 8 Jan 2024 02:21:18 +0800 Subject: [PATCH] Formatting change to debug release flow --- packages/storybook-addon-designs/src/blocks.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/storybook-addon-designs/src/blocks.tsx b/packages/storybook-addon-designs/src/blocks.tsx index 3347489..d6808d4 100644 --- a/packages/storybook-addon-designs/src/blocks.tsx +++ b/packages/storybook-addon-designs/src/blocks.tsx @@ -146,9 +146,7 @@ export const DocBlockBase: FC = ({ title: collapsed ? "Show" : "Hide", onClick: () => { const newValue = !collapsed; - if (onCollapsedChange) { - onCollapsedChange(newValue, collapsed); - } + if (onCollapsedChange) onCollapsedChange(newValue, collapsed); setCollapsed(newValue); }, },