Skip to content

Commit

Permalink
Changed the null keyword to _null_
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasSp committed Dec 20, 2024
1 parent 0410f6a commit f57dbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/infowindow_exporthandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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') {
Expand Down

0 comments on commit f57dbbb

Please sign in to comment.