Skip to content

Commit

Permalink
Merge pull request #9275 from camptocamp/backport/9274-to-master
Browse files Browse the repository at this point in the history
[Backport master] Fix error on search result selection with coordinates search
  • Loading branch information
llienher authored Dec 20, 2023
2 parents 92cfe6c + 7b7e810 commit 8faa6c9
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 8faa6c9

Please sign in to comment.