mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 09:46:05 +08:00
fix: use inactive for empty alert state (#5902)
This commit is contained in:
parent
36adc17a34
commit
c6ba2b4598
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user