Skip to content

Commit

Permalink
Use Array.from instead of Object.values
Browse files Browse the repository at this point in the history
Co-authored-by: Dannon <[email protected]>
  • Loading branch information
mvdbeek and dannon authored May 15, 2024
1 parent 3180435 commit 91f7bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/PageDisplay/PageHtml.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
if (content) {
const vDom = document.createElement("div");
vDom.innerHTML = content;
const children = Object.values(vDom.children);
const children = Array.from(vDom.children);
children.forEach((child) => {
if (child.classList.contains("embedded-item")) {
const splitId = child.id.split("-");
Expand Down

0 comments on commit 91f7bec

Please sign in to comment.