Fix potential null access
This commit is contained in:
parent
f6f5111700
commit
a7006f9321
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ export class CellOutputElement extends Disposable {
|
||||||
|
|
||||||
updateDOMTop(top: number) {
|
updateDOMTop(top: number) {
|
||||||
if (this.useDedicatedDOM) {
|
if (this.useDedicatedDOM) {
|
||||||
this.domNode.style.top = `${top}px`;
|
if (this.domNode) {
|
||||||
|
this.domNode.style.top = `${top}px`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue