Do not resolve promise twice

This commit is contained in:
Cimbali 2023-09-11 13:46:34 +01:00
parent 546ee7a098
commit aa9bb41305

View file

@ -61,8 +61,9 @@ window.assignManager = {
this.area.get([siteStoreKey]).then((storageResponse) => {
if (storageResponse && siteStoreKey in storageResponse) {
resolve(storageResponse[siteStoreKey]);
}
} else {
resolve(null);
}
}).catch((e) => {
reject(e);
});