diff --git a/platform/commonUI/edit/src/actions/PropertiesDialog.js b/platform/commonUI/edit/src/actions/PropertiesDialog.js index 55c7802e2c..24ed239b42 100644 --- a/platform/commonUI/edit/src/actions/PropertiesDialog.js +++ b/platform/commonUI/edit/src/actions/PropertiesDialog.js @@ -49,7 +49,7 @@ define( name: "Properties", rows: this.properties.map(function (property, index) { // Property definition is same as form row definition - var row = Object.create(property.getDefinition()); + var row = JSON.parse(JSON.stringify(property.getDefinition())); row.key = index; return row; }).filter(function (row) { diff --git a/platform/commonUI/edit/src/creation/CreateWizard.js b/platform/commonUI/edit/src/creation/CreateWizard.js index 46314c3d28..0b7e8fb3a1 100644 --- a/platform/commonUI/edit/src/creation/CreateWizard.js +++ b/platform/commonUI/edit/src/creation/CreateWizard.js @@ -66,7 +66,7 @@ define( name: "Properties", rows: this.properties.map(function (property, index) { // Property definition is same as form row definition - var row = Object.create(property.getDefinition()); + var row = JSON.parse(JSON.stringify(property.getDefinition())); // Use index as the key into the formValue; // this correlates to the indexing provided by