Skip to content

Commit

Permalink
ensure legacy-ids get correctly evaluated (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck authored Sep 23, 2020
1 parent faa2381 commit 8728dca
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ export class EMSFileSource extends AbstractVectorSource implements IEmsFileSourc

async getEMSFileLayer(): Promise<FileLayer> {
const emsFileLayers = await getEmsFileLayers();
const emsFileLayer = emsFileLayers.find(
(fileLayer) => fileLayer.getId() === this._descriptor.id
);
const emsFileLayer = emsFileLayers.find((fileLayer) => fileLayer.hasId(this._descriptor.id));
if (!emsFileLayer) {
throw new Error(
i18n.translate('xpack.maps.source.emsFile.unableToFindIdErrorMessage', {
Expand Down

0 comments on commit 8728dca

Please sign in to comment.