@eqproject/eqp-dynamic-module 1.1.5 → 1.1.6

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.
@@ -2288,12 +2288,14 @@ class EqpDynamicModuleComponent {
2288
2288
  ngOnInit() {
2289
2289
  UtilityHelperService.SetContext(this.context);
2290
2290
  this.configureDefaultEndPoints();
2291
- if (this.previewMode)
2292
- setTimeout(() => this.onAddViewEditRecord(null), 50); // 2500 is millisecond
2293
2291
  if (this.FormJSON == "") {
2294
2292
  this.getFormByID();
2295
2293
  }
2296
2294
  }
2295
+ ngAfterViewInit() {
2296
+ if (this.previewMode)
2297
+ setTimeout(() => this.onAddViewEditRecord(null), 500);
2298
+ }
2297
2299
  getFormByID() {
2298
2300
  const dynamicModuleParams = new Array();
2299
2301
  dynamicModuleParams.push({