From 0b0d8c73300e2650d87b46f42a5e5fb4ccbf971f Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Thu, 9 May 2024 13:47:59 -0700 Subject: [PATCH] Format --- packages/components/src/tools-panel/tools-panel-item/hook.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/src/tools-panel/tools-panel-item/hook.ts b/packages/components/src/tools-panel/tools-panel-item/hook.ts index ccc4573084d6a..1e33e7c6740de 100644 --- a/packages/components/src/tools-panel/tools-panel-item/hook.ts +++ b/packages/components/src/tools-panel/tools-panel-item/hook.ts @@ -128,7 +128,9 @@ export function useToolsPanelItem( // Notify the panel when an item's value has changed except for optional // items without value because the item should not cause itself to hide. useEffect( () => { - if ( ! isShownByDefault && ! isValueSet ) return; + if ( ! isShownByDefault && ! isValueSet ) { + return; + } flagItemCustomization( isValueSet, label, menuGroup ); }, [