Skip to content

Commit

Permalink
Revert "fix: filter null node first. (#1909)"
Browse files Browse the repository at this point in the history
This reverts commit 417d066.
  • Loading branch information
Koooooo-7 authored Oct 26, 2022
1 parent 942a922 commit f1ec55d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ export function Render(Base) {
[
document.querySelector('aside.sidebar'),
document.querySelector('button.sidebar-toggle'),
]
.filter(e => !!e)
.forEach(node => node.parentNode.removeChild(node));
].forEach(node => node.parentNode.removeChild(node));
document.querySelector('section.content').style.right = 'unset';
document.querySelector('section.content').style.left = 'unset';
document.querySelector('section.content').style.position = 'relative';
Expand Down

0 comments on commit f1ec55d

Please sign in to comment.