From 7b7e810f29bea74689fdd6ecc312b159e49f8bdc 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 1bfed5418815..d19d4a64264d 100644 --- a/src/controllers/AbstractAppController.js +++ b/src/controllers/AbstractAppController.js @@ -323,9 +323,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), };