Skip to content

Commit

Permalink
remove unit of custom result index conditions when it's not defined
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Jun 11, 2024
1 parent ccd4853 commit 6da084f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ export const DetectorDefinitionFields = (
};

const minAgeValue = get(props, 'detector.resultIndexMinAge', undefined);
const minAge = (minAgeValue === undefined) ? '- Days' : minAgeValue + " Days";
const minAge = (minAgeValue === undefined) ? '-' : minAgeValue + " Days";
const minSizeValue = get(props, 'detector.resultIndexMinSize', undefined);
const minSize = (minSizeValue === undefined) ? '- MB' : minSizeValue + " MB";
const minSize = (minSizeValue === undefined) ? '-' : minSizeValue + " MB";
const ttlValue = get(props, 'detector.resultIndexTtl', undefined);
const ttl = (ttlValue === undefined) ? '- Days' : ttlValue + " Days";
const ttl = (ttlValue === undefined) ? '-' : ttlValue + " Days";


return (
Expand Down

0 comments on commit 6da084f

Please sign in to comment.