Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
its possible for LSO using new ui to crash because actions.children i…
Browse files Browse the repository at this point in the history
…s undefined
  • Loading branch information
yyassi-heartex committed Jul 19, 2023
1 parent 22054d2 commit 0e1ed20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataManager/Toolbar/ActionsButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const ActionsButton = injector(observer(({ store, size, hasSelected, ...r
align="top-right-outside"
toggle={false}
ref={submenuRef}
content={<Block name='actionButton-submenu' tag="ul" mod={{ newUI: isNewUI }}>{action.children.map(ActionButton, parentRef)}</Block>}
content={<Block name='actionButton-submenu' tag="ul" mod={{ newUI: isNewUI }}>{(action?.children ?? []).map(ActionButton, parentRef)}</Block>}
>
{titleContainer}
</Dropdown.Trigger>
Expand Down

0 comments on commit 0e1ed20

Please sign in to comment.