forked from mystiq/hydrogen-web
Change check
This commit is contained in:
parent
af5a008d0f
commit
e99cd41ed0
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export class TextMessageView extends BaseMessageView {
|
|||
}
|
||||
}));
|
||||
|
||||
const shouldRemove = (element) => element && element.className !== "ReplyPreviewView" && element.nodeName !== "#comment";
|
||||
const shouldRemove = (element) => element?.nodeType === Node.ELEMENT_NODE && element.className !== "ReplyPreviewView";
|
||||
|
||||
t.mapSideEffect(vm => vm.body, body => {
|
||||
while (shouldRemove(container.lastChild)) {
|
||||
|
|
Loading…
Reference in a new issue