Explorar o código

Don't block on saving for populating the context.

Ian Rose %!s(int64=8) %!d(string=hai) anos
pai
achega
6e87cc3b3e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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();
         }