@eqproject/eqp-dynamic-module 2.6.41 → 2.6.42

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.
@@ -8153,7 +8153,12 @@ class EqpDynamicModuleComponent {
8153
8153
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
8154
8154
  // console.log("success RunEndPointCall",res,this.defaultViewMode);
8155
8155
  this.form = res;
8156
- this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
8156
+ if (this.form.ObjectTriggers != null && this.form.ObjectTriggers != "") {
8157
+ this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
8158
+ }
8159
+ else {
8160
+ this.form.Triggers = new Array();
8161
+ }
8157
8162
  this.selectedRecord = null;
8158
8163
  if (this.answerToDuplicateId != null) {
8159
8164
  this.selectedRecord = this.answerToDuplicateId;