Do not resolve promise twice
This commit is contained in:
parent
546ee7a098
commit
aa9bb41305
1 changed files with 2 additions and 1 deletions
|
@ -61,8 +61,9 @@ window.assignManager = {
|
||||||
this.area.get([siteStoreKey]).then((storageResponse) => {
|
this.area.get([siteStoreKey]).then((storageResponse) => {
|
||||||
if (storageResponse && siteStoreKey in storageResponse) {
|
if (storageResponse && siteStoreKey in storageResponse) {
|
||||||
resolve(storageResponse[siteStoreKey]);
|
resolve(storageResponse[siteStoreKey]);
|
||||||
|
} else {
|
||||||
|
resolve(null);
|
||||||
}
|
}
|
||||||
resolve(null);
|
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
reject(e);
|
reject(e);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue