From 8a2fd84baf34a57efda2ce1d1efeebbda68e00e4 Mon Sep 17 00:00:00 2001 From: MattiasSp Date: Fri, 19 Apr 2024 12:54:36 +0200 Subject: [PATCH] Fix missing typenames --- src/layer/wfssource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer/wfssource.js b/src/layer/wfssource.js index 14a287006..c69ba0373 100644 --- a/src/layer/wfssource.js +++ b/src/layer/wfssource.js @@ -204,8 +204,8 @@ class WfsSource extends VectorSource { if (ids || ids === 0) { switch (this._options.filterType) { case 'qgis': { - const idArray = ids.toString().split(','); // Split to array - idArray.map(id => { + let idArray = ids.toString().split(','); // Split to array + idArray = idArray.map(id => { // Prepend the layername using id if needed (in case the name is using double underscore notation) if (!id.toString().startsWith(`${this._options.featureType}.`)) { return `${this._options.featureType}.${id}`;