Skip to content

Commit

Permalink
remove needless optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
saranrapjs committed Nov 14, 2023
1 parent 9e50f94 commit d5cb030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodeViews/createReactNodeViewConstructor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export function createReactNodeViewConstructor(
// from the DOM. Here we attempt to reassemble the DOM that React
// expects when cleaning up the portal.
if (componentRef?.contentDOMParent) {
this.dom.appendChild(componentRef?.contentDOMParent);
this.dom.appendChild(componentRef.contentDOMParent);
}
unregisterElement();
reactNodeView.destroy?.();
Expand Down

0 comments on commit d5cb030

Please sign in to comment.