From c9e2161189bd94e82f9bf96477a25ecbd8a673f1 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Mon, 6 Nov 2023 11:22:02 +0000 Subject: [PATCH] no_result configuration for gazetteer. --- lib/utils/gazetteer.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/gazetteer.mjs b/lib/utils/gazetteer.mjs index a19871e3f..e73c68274 100644 --- a/lib/utils/gazetteer.mjs +++ b/lib/utils/gazetteer.mjs @@ -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`
  • ${dataset.title || layer.name} - ${mapp.dictionary.no_results}`) + ${dataset.no_result || mapp.dictionary.no_results}`) return; }