We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62a34fc commit b2ea50dCopy full SHA for b2ea50d
src/diff/unified-cell.ts
@@ -77,13 +77,17 @@ export class UnifiedCellDiffManager extends BaseUnifiedDiffManager {
77
78
if (this._toolbarObserver) {
79
this._toolbarObserver.disconnect();
80
+ this._toolbarObserver = undefined;
81
}
82
83
+
84
/**
85
* Hide the cell's toolbar while the diff is active
86
*/
87
protected hideCellToolbar(): void {
- const toolbar = this._cell.node.querySelector('jp-toolbar') as HTMLElement;
88
+ const toolbar = this._cell.node.querySelector(
89
+ 'jp-toolbar'
90
+ ) as HTMLElement | null;
91
if (toolbar) {
92
toolbar.style.display = 'none';
93
0 commit comments