Skip to content

Commit

Permalink
[BP] Map / Localisation / Empty results if no query (#7338)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre authored and josegar74 committed Sep 21, 2023
1 parent e60c4d5 commit 29c7db5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
search: function (scope, loc, query) {
var lang = gnGlobalSettings.lang;

if (query.length < 1) return;
if (query.length < 1) {
scope.results = [];
return;
}
var coord = gnGetCoordinate(
scope.map.getView().getProjection().getWorldExtent(),
query
Expand Down

0 comments on commit 29c7db5

Please sign in to comment.