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 ccc4573084d6ac..1e33e7c6740ded 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 ); }, [