yogevbd 6 лет назад
Родитель
Сommit
cf70cfcb53
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      lib/src/commands/Commands.ts

+ 3
- 0
lib/src/commands/Commands.ts Просмотреть файл

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