yogevbd 6 jaren geleden
bovenliggende
commit
cf70cfcb53
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3
    0
      lib/src/commands/Commands.ts

+ 3
- 0
lib/src/commands/Commands.ts Bestand weergeven

@@ -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;