浏览代码

Finish populating on revert

Steven Silvester 8 年之前
父节点
当前提交
bd74c94c0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/docregistry/context.ts

+ 1 - 1
src/docregistry/context.ts

@@ -274,7 +274,7 @@ class Context<T extends DocumentRegistry.IModel> implements DocumentRegistry.ICo
       this._updateContentsModel(contents);
       this._updateContentsModel(contents);
       model.dirty = false;
       model.dirty = false;
       if (!this._isPopulated) {
       if (!this._isPopulated) {
-        this._populate();
+        return this._populate();
       }
       }
     }).catch(err => {
     }).catch(err => {
       showDialog({
       showDialog({