@sumaris-net/ngx-components 2.6.13 → 2.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35839,13 +35839,15 @@ class MessageModal {
35839
35839
  this.canSelectType = toBoolean(this.canSelectType, this.accountService.isAdmin());
35840
35840
  }
35841
35841
  ngAfterViewInit() {
35842
- this.form.markAsReady({ emitEvent: false });
35843
- if (this.data) {
35844
- this.data.type = this.data.type || MessageTypes.INBOX_MESSAGE;
35845
- this.form.setValue(this.data);
35846
- }
35847
- this.form.markAsLoaded();
35848
- this.form.enable();
35842
+ setTimeout(() => {
35843
+ this.form.markAsReady({ emitEvent: false });
35844
+ if (this.data) {
35845
+ this.data.type = this.data.type || MessageTypes.INBOX_MESSAGE;
35846
+ this.form.setValue(this.data);
35847
+ }
35848
+ this.form.markAsLoaded();
35849
+ this.form.enable();
35850
+ });
35849
35851
  }
35850
35852
  cancel(event) {
35851
35853
  this.viewCtrl.dismiss();