File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
ReactNativeClient/lib/services Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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
3130export interface CommandDeclaration {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments