mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
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:
@@ -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("-");
|
||||
|
||||
Reference in New Issue
Block a user