Fix Legacy HTML page view

`.children` is a HTMLCollection object which doesn't have a forEach
interface. I confirmed this renders a few old style pages successfully.

Fixes https://github.com/galaxyproject/galaxy/issues/18144
This commit is contained in:
mvdbeek
2024-05-14 21:02:35 +02:00
parent fa3ef460d9
commit 3180435cd1
@@ -32,7 +32,7 @@ export default {
if (content) {
const vDom = document.createElement("div");
vDom.innerHTML = content;
const children = vDom.children;
const children = Object.values(vDom.children);
children.forEach((child) => {
if (child.classList.contains("embedded-item")) {
const splitId = child.id.split("-");