Skip to content

Commit

Permalink
Update packages/components/src/tools-panel/tools-panel-header/hook.js
Browse files Browse the repository at this point in the history
Pretty it

Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com>
  • Loading branch information
ramonjd and andrewserong committed Sep 13, 2021
1 parent 8640ca7 commit 4ff352e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -25,7 +25,9 @@ export function useToolsPanelHeader( props ) {
const { menuItems } = useToolsPanelContext();
const menuItemsArray = Object.entries( menuItems );
const hasMenuItems = !! menuItemsArray.length;
const hasSelectedMenuItems = menuItemsArray.some( ( [ , isSelected ] ) => isSelected );
const hasSelectedMenuItems = menuItemsArray.some(
( [ , isSelected ] ) => isSelected
);

return {
...otherProps,
Expand Down

0 comments on commit 4ff352e

Please sign in to comment.