Fix potential null access
This commit is contained in:
parent
f6f5111700
commit
a7006f9321
|
@ -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`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue