Fix for dispose method of undefined (#4843)

This commit is contained in:
Chris LaFreniere
2019-04-03 18:08:42 -07:00
committed by GitHub
parent 73b5d23210
commit a34692b6f2

View File

@@ -490,7 +490,9 @@ export class CellModel implements ICellModel {
// Dispose and set current future to undefined
private disposeFuture() {
this._future.dispose();
if (this._future) {
this._future.dispose();
}
this._future = undefined;
}
}