Skip to content

Commit 284d9e9

Browse files
committed
Truncate the index pattern name if it's too long
Signed-off-by: gaobinlong <gbinlong@amazon.com>
1 parent bfe768e commit 284d9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/components/DiscoverAction/SuggestAnomalyDetector.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function GenerateAnomalyDetector({
127127
const [delayValue, setDelayValue] = useState(1);
128128
const [enabled, setEnabled] = useState<boolean>(false);
129129
const [detectorName, setDetectorName] = useState(
130-
formikToDetectorName(indexPatternName)
130+
formikToDetectorName(indexPatternName.substring(0, 40))
131131
);
132132

133133
// let LLM to generate parameters for creating anomaly detector

0 commit comments

Comments
 (0)