Skip to content

Commit

Permalink
Fix error on search result selection with coordinates search
Browse files Browse the repository at this point in the history
  • Loading branch information
llienher committed Dec 20, 2023
1 parent 92cfe6c commit 7b7e810
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/controllers/AbstractAppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 7b7e810

Please sign in to comment.