Przeglądaj źródła

Revert "resolves commandId and layout on showModal"

This reverts commit f6728fc1d6.
yogevbd 7 lat temu
rodzic
commit
099ac15fbb
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1
    3
      lib/src/commands/Commands.ts

+ 1
- 3
lib/src/commands/Commands.ts Wyświetl plik

59
     const commandId = this.uniqueIdProvider.generate('showModal');
59
     const commandId = this.uniqueIdProvider.generate('showModal');
60
     const result = this.nativeCommandsSender.showModal(commandId, layout);
60
     const result = this.nativeCommandsSender.showModal(commandId, layout);
61
     this.commandsObserver.notify('showModal', { commandId, layout });
61
     this.commandsObserver.notify('showModal', { commandId, layout });
62
-    return result.then(() => {
63
-      return {commandId, layout};
64
-    });
62
+    return result;
65
   }
63
   }
66
 
64
 
67
   public dismissModal(componentId) {
65
   public dismissModal(componentId) {