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 4b2add2 commit 18c5a9a
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 @@ -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),
};
Expand Down

0 comments on commit 18c5a9a

Please sign in to comment.