aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-09 23:03:31 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-09 23:03:53 +0200
commit9922252612b81714ef6e01b46f4744352ca94adb (patch)
tree65cbd7b89c0cd41c2f5fae4c69dd23d8003bbacf /main.js
parent6ef5462f388ebb5e3263f9c5baac6aecf3c480a5 (diff)
Feature fetch: Never pass “fid:undefined” when querying the CGI.
Diffstat (limited to 'main.js')
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.js b/main.js
index a125a97..1e0e828 100644
--- a/main.js
+++ b/main.js
@@ -5254,7 +5254,7 @@ const infoMetadataAccordions = [];
fetch_body.push({
layer_group: layerGroup,
layer: layerName,
- fid: feature.getId(),
+ fid: feature.getId() ?? -1,
});
if (fetch_body.length >= 100) {
return true; /* enough matches already, stop detection here */