Skip to content

Commit

Permalink
Merge pull request #9276 from camptocamp/backport/9274-to-2.7
Browse files Browse the repository at this point in the history
[Backport 2.7] Fix error on search result selection with coordinates search
  • Loading branch information
llienher authored Dec 20, 2023
2 parents 4b2add2 + 18c5a9a commit ea0c46d
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 ea0c46d

Please sign in to comment.