Skip to content

Commit

Permalink
Safeguard against group name typo
Browse files Browse the repository at this point in the history
This won't prevent errors from ToolsPanelItem registration though.
  • Loading branch information
aaronrobertshaw committed Aug 20, 2021
1 parent 364ce8f commit 515f33d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default function BlockSupportToolsPanel( { group, children } ) {

return (
<ToolsPanel
label={ BLOCK_SUPPORT_GROUPS[ group ].label }
header={ BLOCK_SUPPORT_GROUPS[ group ].header }
label={ BLOCK_SUPPORT_GROUPS[ group ]?.label }
header={ BLOCK_SUPPORT_GROUPS[ group ]?.header }
resetAll={ resetAll }
>
{ children }
Expand Down

0 comments on commit 515f33d

Please sign in to comment.