Skip to content

Commit

Permalink
Merge pull request #9274 from camptocamp/GEO-7048_fix-error-console-s…
Browse files Browse the repository at this point in the history
…earch-coordinates

Fix error on search result selection with coordinates search
  • Loading branch information
llienher authored Dec 20, 2023
2 parents e25a94a + 7388ed5 commit c3ffba1
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 @@ -324,9 +324,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 c3ffba1

Please sign in to comment.