Skip to content

Commit

Permalink
no_result configuration for gazetteer.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 6, 2023
1 parent fe2908a commit c9e2161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/gazetteer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ export function datasets(term, gazetteer) {

// No results
if (!e.target.response) {
if (dataset.no_result === null) return;
gazetteer.list.append(mapp.utils.html.node`
<li>
<span class="label">${dataset.title || layer.name}</span>
<span>${mapp.dictionary.no_results}</span>`)
<span>${dataset.no_result || mapp.dictionary.no_results}</span>`)
return;
}

Expand Down

0 comments on commit c9e2161

Please sign in to comment.