Fix potential null access

This commit is contained in:
Matt Bierner 2021-03-16 17:18:57 -07:00
parent f6f5111700
commit a7006f9321

View file

@ -72,7 +72,9 @@ export class CellOutputElement extends Disposable {
updateDOMTop(top: number) {
if (this.useDedicatedDOM) {
this.domNode.style.top = `${top}px`;
if (this.domNode) {
this.domNode.style.top = `${top}px`;
}
}
}