mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 00:55:54 +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":
|
case "disabled":
|
||||||
*s = StateDisabled
|
*s = StateDisabled
|
||||||
default:
|
default:
|
||||||
return errors.New("invalid alert state")
|
*s = StateInactive
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user