From f57dbbbdd005d6c599eab4355b8f67e82f0f746f Mon Sep 17 00:00:00 2001 From: MattiasSp Date: Fri, 20 Dec 2024 08:33:00 +0100 Subject: [PATCH] Changed the null keyword to _null_ --- src/infowindow_exporthandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infowindow_exporthandler.js b/src/infowindow_exporthandler.js index 7330b42ff..4a7bdf14b 100644 --- a/src/infowindow_exporthandler.js +++ b/src/infowindow_exporthandler.js @@ -124,7 +124,7 @@ export function layerSpecificExportHandler(url, requestMethod, urlParameters, ac // an "attribute" property, in which case the value will be a list of the values from the // corresponding attribute of the selectedItems. Unless specified with a "separator" property, // the list will be separated by semicolons. - // Specifying a value as "null" will add a valueless parameter, e g "?Param1&Param2&etc". + // Specifying a value as "_null_" will add a valueless parameter, e g "?Param1&Param2&etc". let requestUrl = url; const requestParams = { ...urlParameters }; if (requestParams) { @@ -142,7 +142,7 @@ export function layerSpecificExportHandler(url, requestMethod, urlParameters, ac }); requestUrl = new URL(url); requestUrl.search = new URLSearchParams(requestParams); - requestUrl = requestUrl.toString().replace(/=null(&|$)/gm, '$1'); + requestUrl = requestUrl.toString().replace(/=_null_(&|$)/gm, '$1'); } if (requestMethod === 'OPEN') {