diff --git a/dashboard/plugins/plugins-form/pluginsForm.component.ts b/dashboard/plugins/plugins-form/pluginsForm.component.ts index 4dbb41db..f915981e 100644 --- a/dashboard/plugins/plugins-form/pluginsForm.component.ts +++ b/dashboard/plugins/plugins-form/pluginsForm.component.ts @@ -118,7 +118,7 @@ export class PluginsFormComponent implements OnInit { }else{ this.selectedPlugin = new Plugin(this.page._id,this.selectedCommunityPid, template); // this.selectedPlugin.order = this.pluginsByPlacement.get(this.selectedPlacementView).length; - this.selectedPlugin.object = PluginUtils.initializeObjectAndCompare(template.code,null); + this.selectedPlugin.object = PluginUtils.initializeObjectAndCompare(template.code,this.selectedPlugin.object); this.edit(this.selectedPlugin, this.selectedTemplate); }