From a3afadb677d9a98bd3c1b30ef30656dbb2c4abe0 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 14 Jun 2024 17:21:09 -0400 Subject: [PATCH] fix: hide importers section if none is defined --- umap/static/umap/js/modules/importer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index df7a3222..37e0dedb 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -12,14 +12,16 @@ const TEMPLATE = ` -
+
- ${translate('Choose the format')} + ${translate( + 'Choose the format' + )}
@@ -147,7 +149,7 @@ export default class Importer { for (const plugin of this.IMPORTERS.sort((a, b) => (a.id > b.id ? 1 : -1))) { L.DomUtil.createButton( plugin.id, - DomUtil.element({tagName: 'li', parent}), + DomUtil.element({ tagName: 'li', parent }), plugin.name, () => plugin.open(this) )