File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,11 @@ const OperationItem = (props: {
447
447
}
448
448
449
449
function deleteOperation ( ) {
450
- if ( props . item . type === 'StdLibCall' || props . item . type === 'GroupBegin' ) {
450
+ if (
451
+ props . item . type === 'StdLibCall' ||
452
+ props . item . type === 'GroupBegin' ||
453
+ props . item . type === 'VariableDeclaration'
454
+ ) {
451
455
props . send ( {
452
456
type : 'deleteOperation' ,
453
457
data : {
@@ -583,6 +587,12 @@ const OperationItem = (props: {
583
587
>
584
588
Clone
585
589
</ ContextMenuItem > ,
590
+ ]
591
+ : [ ] ) ,
592
+ ...( props . item . type === 'StdLibCall' ||
593
+ props . item . type === 'GroupBegin' ||
594
+ props . item . type === 'VariableDeclaration'
595
+ ? [
586
596
< ContextMenuItem
587
597
onClick = { deleteOperation }
588
598
hotkey = "Delete"
You can’t perform that action at this time.
0 commit comments