[hotfix] fix cant delete maps in shared contents + fix conflict with maps selected and maps deletion

This commit is contained in:
MathieuG-P
2023-06-28 20:43:19 +02:00
parent e27cc7d254
commit f50ee1c25d
2 changed files with 9 additions and 2 deletions
@@ -86,7 +86,7 @@ export class MapsManagerService {
public async deleteMaps(maps: BsmLocalMap[], version?: BSVersion): Promise<boolean>{
const versionLinked = await this.versionHaveMapsLinked(version);
const versionLinked = !version || await this.versionHaveMapsLinked(version);
const askModal = maps.length > 1 || !this.config.get<boolean>(MapsManagerService.REMEMBER_CHOICE_DELETE_MAP_KEY);