From c2833987b7c314cfd8a82b7b9541afed827a7894 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 1 Oct 2024 08:55:58 +0200 Subject: [PATCH] fix: remoteData helpEntries were not on the right format Should be now an array (not guessing anymore). --- umap/static/umap/js/modules/data/layer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index f174d824..5668b2f5 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -716,7 +716,7 @@ export class DataLayer { const remoteDataFields = [ [ 'options.remoteData.url', - { handler: 'Url', label: translate('Url'), helpEntries: 'formatURL' }, + { handler: 'Url', label: translate('Url'), helpEntries: ['formatURL'] }, ], [ 'options.remoteData.format', @@ -729,7 +729,7 @@ export class DataLayer { { handler: 'Switch', label: translate('Dynamic'), - helpEntries: 'dynamicRemoteData', + helpEntries: ['dynamicRemoteData'], }, ], [ @@ -746,7 +746,7 @@ export class DataLayer { { handler: 'Switch', label: translate('Proxy request'), - helpEntries: 'proxyRemoteData', + helpEntries: ['proxyRemoteData'], }, ]) remoteDataFields.push('options.remoteData.ttl')