client/views: fix complex templates
This commit is contained in:
parent
eb09677bf8
commit
c0fd46c890
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ function replaceContent(target, source) {
|
|||
target.removeChild(target.lastChild);
|
||||
}
|
||||
if (source instanceof NodeList) {
|
||||
for (let child of source) {
|
||||
for (let child of Array.from(source)) {
|
||||
target.appendChild(child);
|
||||
}
|
||||
} else if (source instanceof Node) {
|
||||
|
|
Loading…
Reference in a new issue