diff --git a/app/client/ui/DocHistory.ts b/app/client/ui/DocHistory.ts index 6eb4e109..fe6a2b9e 100644 --- a/app/client/ui/DocHistory.ts +++ b/app/client/ui/DocHistory.ts @@ -67,7 +67,8 @@ export class DocHistory extends Disposable implements IDomComponent { const snapshots = Observable.create(owner, []); const userApi = this._docPageModel.appModel.api; const docApi = userApi.getDocAPI(origUrlId); - docApi.getSnapshots().then(result => snapshots.set(result.snapshots)).catch(reportError); + docApi.getSnapshots().then(result => + snapshots.isDisposed() || snapshots.set(result.snapshots)).catch(reportError); return dom('div', // Note that most recent snapshots are first. dom.domComputed(snapshots, (snapshotList) => snapshotList.map((snapshot, index) => {