Skip to content

Commit

Permalink
Ensure EXTRA_BUTTONS is not null before rendering
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jan 5, 2024
1 parent 1557f95 commit cd246f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const IncidentActionsComponent = () => (
<PriorityMenu />
<AddNoteButton />
<RunActionMenu />
{EXTRA_BUTTONS.map(({
{EXTRA_BUTTONS && EXTRA_BUTTONS.map(({
label, url, width, height,
}) => (
<>
Expand Down
1 change: 1 addition & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jest.mock('src/config/constants', () => ({
DEBUG_DISABLE_POLLING: false,
DEBUG_SINCE_DATE: null,
DEBUG_UNTIL_DATE: null,
EXTRA_BUTTONS: null,
}));

beforeEach(() => {
Expand Down

0 comments on commit cd246f8

Please sign in to comment.