[hotfix] Fix false error when deleting a playlist with no maps installed

This commit is contained in:
Zagrios
2025-01-29 21:43:59 +01:00
parent 3afcf1c12e
commit 39d481467a
@@ -280,6 +280,8 @@ export class LocalMapsManagerService {
return new Observable<Progression>(observer => {
const progress: Progression = { total: hashs.length, current: 0 };
observer.next(progress);
(async () => {
const versionMapsPath = await this.getMapsFolderPath(version);
const mapsPaths = await getFoldersInFolder(versionMapsPath);
@@ -295,7 +297,7 @@ export class LocalMapsManagerService {
observer.next(progress);
}
})()
.catch(e => observer.error(e))
.catch(e => {observer.error(e); console.log("AAAA", e)})
.finally(() => observer.complete());
});
}