Fixed getLocation()
not getting location correctly
(cherry picked from commit d7798d3afa
)
This commit is contained in:
parent
c3e9236759
commit
daeae9687a
@ -116,7 +116,7 @@ export class DatabaseService
|
|||||||
public getLocation(locationId: string): ILocation
|
public getLocation(locationId: string): ILocation
|
||||||
{
|
{
|
||||||
const locations = this.getLocations();
|
const locations = this.getLocations();
|
||||||
const desiredLocation = locations[locationId];
|
const desiredLocation = locations[locationId.toLowerCase()];
|
||||||
if (!desiredLocation)
|
if (!desiredLocation)
|
||||||
{
|
{
|
||||||
throw new Error(this.localisationService.getText("database-no_location_found_with_id", locationId));
|
throw new Error(this.localisationService.getText("database-no_location_found_with_id", locationId));
|
||||||
|
Loading…
Reference in New Issue
Block a user