Skip to content

Commit

Permalink
support edit mode for simple alert
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilvelotio committed Nov 4, 2024
1 parent 3e60690 commit 0f49194
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const AlertsCreateEasyPage: FunctionComponent = () => {
alert.templateProperties
.monitoringGranularity as GranularityValue
);
getAlertRecommendation(alert);
setAlgorithmOption(
alertTemplateOptions.find((item) => {
const name = isMultiDimensionAlert
Expand All @@ -250,6 +251,9 @@ export const AlertsCreateEasyPage: FunctionComponent = () => {
String(alert.templateProperties?.enumeratorQuery)
);
setDimension(SelectDimensionsOptions.ENUMERATORS);
setEnumerations(true);
} else if (alert.templateProperties?.enumerationItems) {
setDimension(SelectDimensionsOptions.DIMENSION_RECOMMENDER);
}
}
}
Expand Down Expand Up @@ -1297,8 +1301,8 @@ export const AlertsCreateEasyPage: FunctionComponent = () => {
option,
value
) =>
option.value ===
value.value
option?.value ===
value?.value
}
inputValue={
inputValue
Expand Down

0 comments on commit 0f49194

Please sign in to comment.