revert the promise resolve
This commit is contained in:
parent
d22f1cd1ed
commit
ba2309a540
|
@ -76,7 +76,7 @@ module.exports = function(realmConstructor) {
|
|||
else {
|
||||
try {
|
||||
let syncedRealm = new realmConstructor(config);
|
||||
resolve(syncedRealm);
|
||||
setTimeout(() => { resolve(syncedRealm); }, 1);
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue