From bfc6bf9a33e22b47e003405f0075b50e55a92b10 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 23 Apr 2024 14:56:56 +0200 Subject: [PATCH] fix: accept displayProperty of both with and without display prefix --- packages/plugin/src/modules/getRequestOptions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin/src/modules/getRequestOptions.js b/packages/plugin/src/modules/getRequestOptions.js index 0faf399aa8..052453bf5b 100644 --- a/packages/plugin/src/modules/getRequestOptions.js +++ b/packages/plugin/src/modules/getRequestOptions.js @@ -21,9 +21,11 @@ export const getRequestOptions = (visualization, filters, userSettings) => { if (userSettings?.displayProperty) { switch (userSettings.displayProperty) { case 'displayShortName': + case 'shortName': options.displayProperty = 'SHORTNAME' break case 'displayName': + case 'name': options.displayProperty = 'NAME' break }