File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -430,22 +430,23 @@ const BrowserToolbar = ({
430
430
) }
431
431
{ enableSecurityDialog ? < div className = { styles . toolbarSeparator } /> : < noscript /> }
432
432
< BrowserMenu setCurrent = { setCurrent } title = "Script" icon = "gear-solid" >
433
- < MenuItem
433
+ { [ < MenuItem
434
+ key = "script"
434
435
disabled = { selectionLength === 0 }
435
436
text = {
436
437
selectionLength === 1 && ! selection [ '*' ]
437
438
? 'Run script on selected row...'
438
439
: `Run script on ${ selectionLength } selected rows...`
439
440
}
440
441
onClick = { ( ) => onExecuteScriptRows ( selection ) }
441
- />
442
+ /> ] }
442
443
</ BrowserMenu >
443
444
< div className = { styles . toolbarSeparator } />
444
445
{ menu }
445
446
{ editCloneRows && editCloneRows . length > 0 && < div className = { styles . toolbarSeparator } /> }
446
447
{ editCloneRows && editCloneRows . length > 0 && (
447
448
< 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 } /> ] }
449
450
</ BrowserMenu >
450
451
) }
451
452
</ Toolbar >
You can’t perform that action at this time.
0 commit comments