Skip to content

Commit

Permalink
Fix missing typenames (#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasSp authored May 3, 2024
1 parent 368a450 commit f0f4cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/wfssource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit f0f4cb9

Please sign in to comment.