From 18c5a9aaa6d9dd90d1876eb217307148761ebf1e 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 305a9afc933e..e32604ea23a9 100644 --- a/src/controllers/AbstractAppController.js +++ b/src/controllers/AbstractAppController.js @@ -266,9 +266,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), };