do NOT remove template ID, if we have none

otherwise further templates in an overlay have no ID!
This commit is contained in:
ralf 2025-01-28 11:23:25 +01:00
parent 6ea3a1c884
commit 0de371829c

View File

@ -318,7 +318,8 @@ export class Et2Template extends Et2Widget(LitElement)
attrs[attribute] = xml.getAttribute(attribute);
});
// Don't change ID, keep what we've got
delete attrs["id"];
// only if we have an ID, otherwise further templates in an overlay have no id!
if (this.id) delete attrs["id"];
this.transformAttributes(attrs);
// Load children into template