fix(ui) - alert form crash
This commit is contained in:
parent
3c46ad7885
commit
9d7b48c623
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ function AlertListItem(props: Props) {
|
|||
|
||||
const formTriggerName = () =>
|
||||
Number.isInteger(alert.query.left) && triggerOptions
|
||||
? triggerOptions.find((opt: { value: any, label: string }) => opt.value === alert.query.left)!.label
|
||||
? triggerOptions.find((opt: { value: any, label: string }) => opt.value === alert.query.left)?.label
|
||||
: alert.query.left;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue