Skip to content

Commit 80a70a6

Browse files
committed
Desktop: Regression: Context menu in sidebar could point to wrong item
1 parent 02ed297 commit 80a70a6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ReactNativeClient/lib/services/CommandService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export interface CommandRuntime {
2525

2626
// Used for the (optional) toolbar button title
2727
title?(props:any):string,
28-
// props?:any
2928
}
3029

3130
export interface CommandDeclaration {

ReactNativeClient/lib/services/commands/MenuUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@ export default class MenuUtils {
8888
}
8989

9090
public commandToStatefulMenuItem(commandName:string, props:any = null):MenuItem {
91-
const output = this.commandsToMenuItems([commandName], () => {
91+
return this.commandToMenuItem(commandName, () => {
9292
return this.service.execute(commandName, props ? props : {});
9393
});
94-
return output[commandName];
9594
}
9695

9796
public commandsToMenuItems(commandNames:string[], onClick:Function):MenuItems {

0 commit comments

Comments
 (0)