Skip to content

Commit

Permalink
Merge pull request #986 from target/fix-alert-log-nil-pointer
Browse files Browse the repository at this point in the history
alert log: return no status if message is unavailable
  • Loading branch information
Forfold authored Nov 3, 2020
2 parents 9c687a4 + 127d045 commit 6881399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions graphql2/graphqlapp/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func (a *AlertLogEntry) notificationSentState(ctx context.Context, obj *alertlog
if err != nil {
return nil, errors.Wrap(err, "find alert log state")
}
if s == nil {
return nil, nil
}

return notificationStateFromStatus(*s), nil
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/cypress/support/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function materialCalendar(date: string | DateTime): void {
.should(
'contain',
displayedDT
.plus({ months: (diff < 0 ? -1 : 1) * i + 1 })
.plus({ months: (diff < 0 ? -1 : 1) * (i + 1) })
.toFormat('MMMM'),
)
.should(
Expand Down

0 comments on commit 6881399

Please sign in to comment.