yogevbd 6 years ago
parent
commit
cf70cfcb53
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/src/commands/Commands.ts

+ 3
- 0
lib/src/commands/Commands.ts View File

@@ -50,6 +50,9 @@ export class Commands {
50 50
   }
51 51
 
52 52
   public dismissModal(componentId) {
53
+    if (!componentId) {
54
+      console.error('dismissModal - componentId is missing');
55
+    }
53 56
     const result = this.nativeCommandsSender.dismissModal(componentId);
54 57
     this.commandsObserver.notify('dismissModal', { componentId });
55 58
     return result;