fix id rename error

This commit is contained in:
BlasenhauerJ 2023-03-24 16:57:19 +01:00
parent 82d8180d8e
commit bd88f9743b

View file

@ -624,11 +624,9 @@ class Multiple {
renameLoop(inps, suffix) {
inps.forEach((inp) => {
inp.setAttribute(
"name",
inp.getAttribute("name").replace("_SCHEMA", suffix)
);
inp.setAttribute("id", inp.getAttribute("id").replace("_SCHEMA", suffix));
const newName = inp.getAttribute("name").replace("_SCHEMA", suffix);
inp.setAttribute("name", newName);
if (inp.hasAttribute("id")) inp.setAttribute("id", newName);
});
}