Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed May 9, 2024
1 parent fa554e4 commit 0b0d8c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/tools-panel/tools-panel-item/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}, [
Expand Down

0 comments on commit 0b0d8c7

Please sign in to comment.