From daeae9687ad809726377ae04658526c1ad67f798 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 5 Jul 2024 16:37:17 +0100 Subject: [PATCH] Fixed `getLocation()` not getting location correctly (cherry picked from commit d7798d3afa8028fffb13eb3970062f5ffae9fc6d) --- project/src/services/DatabaseService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/DatabaseService.ts b/project/src/services/DatabaseService.ts index fcaa1e8a..bc427781 100644 --- a/project/src/services/DatabaseService.ts +++ b/project/src/services/DatabaseService.ts @@ -116,7 +116,7 @@ export class DatabaseService public getLocation(locationId: string): ILocation { const locations = this.getLocations(); - const desiredLocation = locations[locationId]; + const desiredLocation = locations[locationId.toLowerCase()]; if (!desiredLocation) { throw new Error(this.localisationService.getText("database-no_location_found_with_id", locationId));