Skip to content

Commit 978a0a3

Browse files
authoredFeb 11, 2025
fix error: includes is undefined (#1155)
1 parent 33352de commit 978a0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tethys_layouts/static/tethys_layouts/map_layout/map_layout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ var MAP_LAYOUT = (function() {
304304
let feature_id = feature.getId();
305305

306306
if (feature_id) {
307-
if (feature_id.includes('.fid')) {
307+
if (feature_id.includes != undefined && feature_id.includes('.fid')) {
308308
// Derive fid from ID assigned by GeoServer (<layer_name>.<fid>)
309309
// e.g.: 0958cc07-c194-4af9-81c5-118a77d335ac_stream_links.fid--72787a80_169a16811e6_-7aa6
310310
feature_id = feature_id.split('.')[1];

0 commit comments

Comments
 (0)