From f0f4cb988514c742fe7b6885230cd8c3f614e3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Sp=C3=A5ngmyr?= Date: Fri, 3 May 2024 15:17:28 +0200 Subject: [PATCH] Fix missing typenames (#1998) --- 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}`;