소스 검색

Don't block on saving for populating the context.

Ian Rose 8 년 전
부모
커밋
6e87cc3b3e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/docregistry/src/context.ts

+ 2 - 1
packages/docregistry/src/context.ts

@@ -186,7 +186,8 @@ class Context<T extends DocumentRegistry.IModel> implements DocumentRegistry.ICo
     if (this._modelDB) {
       return this._modelDB.connected.then(() => {
         if (this._modelDB.isPrepopulated) {
-          return this.save();
+          this.save();
+          return void 0;
         } else {
           return this.revert();
         }