Skip to content

Commit 6da084f

Browse files
committed
remove unit of custom result index conditions when it's not defined
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent ccd4853 commit 6da084f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/pages/ReviewAndCreate/components/DetectorDefinitionFields/DetectorDefinitionFields.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ export const DetectorDefinitionFields = (
132132
};
133133

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

141141

142142
return (

0 commit comments

Comments
 (0)