[develop | DONE | FIXED ] fix initialization from template for PluginCardInfo / ParagraphInfo

This commit is contained in:
argirok 2024-11-04 10:04:20 +02:00
parent 5b207ef3d1
commit e5ff78224e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}