Skip to content

Commit c4c1c29

Browse files
author
weinStag
committed
fix: menu item array error
1 parent e01af27 commit c4c1c29

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dashboard/Data/Browser/BrowserToolbar.react.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,22 +430,23 @@ const BrowserToolbar = ({
430430
)}
431431
{enableSecurityDialog ? <div className={styles.toolbarSeparator} /> : <noscript />}
432432
<BrowserMenu setCurrent={setCurrent} title="Script" icon="gear-solid">
433-
<MenuItem
433+
{[<MenuItem
434+
key="script"
434435
disabled={selectionLength === 0}
435436
text={
436437
selectionLength === 1 && !selection['*']
437438
? 'Run script on selected row...'
438439
: `Run script on ${selectionLength} selected rows...`
439440
}
440441
onClick={() => onExecuteScriptRows(selection)}
441-
/>
442+
/>]}
442443
</BrowserMenu>
443444
<div className={styles.toolbarSeparator} />
444445
{menu}
445446
{editCloneRows && editCloneRows.length > 0 && <div className={styles.toolbarSeparator} />}
446447
{editCloneRows && editCloneRows.length > 0 && (
447448
<BrowserMenu title="Clone" icon="clone-icon">
448-
<MenuItem text={'Cancel all pending rows'} onClick={onCancelPendingEditRows} />
449+
{[<MenuItem key="cancel" text={'Cancel all pending rows'} onClick={onCancelPendingEditRows} />]}
449450
</BrowserMenu>
450451
)}
451452
</Toolbar>

0 commit comments

Comments
 (0)