fix: use inactive for empty alert state (#5902)

This commit is contained in:
Srikanth Chekuri 2024-09-09 21:47:07 +05:30 committed by GitHub
parent 36adc17a34
commit c6ba2b4598
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ func (s *AlertState) UnmarshalJSON(b []byte) error {
case "disabled":
*s = StateDisabled
default:
return errors.New("invalid alert state")
*s = StateInactive
}
return nil
default: