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 = ({
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 >
You can’t perform that action at this time.
0 commit comments