mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[hotfix] Fix false error when deleting a playlist with no maps installed
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user