Skip to content

Commit

Permalink
Ignore comment and text nodes in addTab
Browse files Browse the repository at this point in the history
  • Loading branch information
thfries committed Jun 22, 2022
1 parent 4c17b4f commit 4c5caa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export function addTab(tabItemsNode, tabContentsNode, title, contentHTML) {

const template = document.createElement('template');
template.innerHTML = contentHTML;
template.content.firstChild.id = id;
tabContentsNode.appendChild(template.content.firstChild);
template.content.firstElementChild.id = id;
tabContentsNode.appendChild(template.content.firstElementChild);
}

/**
Expand Down

0 comments on commit 4c5caa0

Please sign in to comment.