Skip to content

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Jun 9, 2023
1 parent 67e1258 commit be59122
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ export function visFeatureListToFormik(
}

export function formikToDetectorName(title) {
let detectorName =
const detectorName =
title + '_anomaly_detector_' + Math.floor(100000 + Math.random() * 900000);
const formattedName = detectorName.replace(/[^a-zA-Z0-9\-_]/g, '_');
return formattedName;
}

const getFeatureNameFromVisParams = (id, seriesParams) => {
let name = find(seriesParams, function (param) {
const name = find(seriesParams, function (param) {
if (param.data.id === id) {
return true;
}
});

const formatedFeatureName = name.data.label.replace(/[^a-zA-Z0-9-_]/g, '_');
return formatedFeatureName
const formattedFeatureName = name.data.label.replace(/[^a-zA-Z0-9-_]/g, '_');
return formattedFeatureName
};

function visAggregationToFormik(value) {
Expand Down

0 comments on commit be59122

Please sign in to comment.