Fixed getLocation()
not getting location correctly
This commit is contained in:
parent
5b9d3fb075
commit
d7798d3afa
@ -117,7 +117,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