Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx committed May 27, 2024
1 parent d75b874 commit 0b3d1a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export class CollapsibleContainerNode extends ElementNode {
const currentOpen = this.__open;
if (prevNode.__open !== currentOpen) {
const contentDom = dom.children[1];
invariant(isHTMLElement(contentDom), 'something');
invariant(
isHTMLElement(contentDom),
'Expected contentDom to be an HTMLElement',
);
if (currentOpen) {
contentDom.style.removeProperty('display');
} else {
Expand Down

0 comments on commit 0b3d1a7

Please sign in to comment.