Skip to content

Commit

Permalink
Commas in PV names #94 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martian-aurora committed Jan 14, 2025
1 parent 867a069 commit d4e8601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const alarmLogMaxResults = import.meta.env.REACT_APP_AL_MAX_RESULTS !== '' ?

function handleParams(params) {
let urlParams = { "pvName": "*", "params": "" }

if ("pvName" in params && params.pvName !== "") {
if (params.pvName.charAt(0) === "=") {
urlParams.pvName = params.pvName.substring(1);
Expand All @@ -33,6 +33,7 @@ function handleParams(params) {
else {
urlParams.pvName = params.pvName;
}
urlParams.pvName = urlParams.pvName.replace(/,/g, '?');
}
if (params['standardSearch']) {
urlParams.params = standardParse(params);
Expand Down

0 comments on commit d4e8601

Please sign in to comment.