mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
fix id rename error
This commit is contained in:
parent
82d8180d8e
commit
bd88f9743b
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue