From 7388ed5a5ab8310709f7eb465f65eac8d0dba999 Mon Sep 17 00:00:00 2001 From: Laurent Lienher Date: Wed, 20 Dec 2023 10:14:52 +0100 Subject: [PATCH] Fix error on search result selection with coordinates search --- src/controllers/AbstractAppController.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/AbstractAppController.js b/src/controllers/AbstractAppController.js index fd56badfad07..9ab50ab48d1b 100644 --- a/src/controllers/AbstractAppController.js +++ b/src/controllers/AbstractAppController.js @@ -324,9 +324,12 @@ export function AbstractAppController($scope, $injector, mobile) { */ this.searchListeners = { select: function (event, feature, dataset) { - const params = feature.get('params') || {}; - for (const key in params) { - this.dimensions[key] = params[key].toString(); + // If its coordinates, no getter is present + if (typeof feature.get !== 'undefined') { + const params = feature.get('params') || {}; + for (const key in params) { + this.dimensions[key] = params[key].toString(); + } } }.bind(this), };