Skip to content

Commit b2ea50d

Browse files
committed
other type fixes
1 parent 62a34fc commit b2ea50d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/diff/unified-cell.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,17 @@ export class UnifiedCellDiffManager extends BaseUnifiedDiffManager {
7777

7878
if (this._toolbarObserver) {
7979
this._toolbarObserver.disconnect();
80+
this._toolbarObserver = undefined;
8081
}
8182
}
83+
8284
/**
8385
* Hide the cell's toolbar while the diff is active
8486
*/
8587
protected hideCellToolbar(): void {
86-
const toolbar = this._cell.node.querySelector('jp-toolbar') as HTMLElement;
88+
const toolbar = this._cell.node.querySelector(
89+
'jp-toolbar'
90+
) as HTMLElement | null;
8791
if (toolbar) {
8892
toolbar.style.display = 'none';
8993
}

0 commit comments

Comments
 (0)