[develop | DONE | FIXED ] fix initialization from template for PluginCardInfo / ParagraphInfo
This commit is contained in:
parent
5b207ef3d1
commit
e5ff78224e
|
@ -118,7 +118,7 @@ export class PluginsFormComponent implements OnInit {
|
||||||
}else{
|
}else{
|
||||||
this.selectedPlugin = new Plugin(this.page._id,this.selectedCommunityPid, template);
|
this.selectedPlugin = new Plugin(this.page._id,this.selectedCommunityPid, template);
|
||||||
// this.selectedPlugin.order = this.pluginsByPlacement.get(this.selectedPlacementView).length;
|
// 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);
|
this.edit(this.selectedPlugin, this.selectedTemplate);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue