Skip to content

Commit

Permalink
fix(customChecks): bring back custom check saving (#18194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebb-tide authored May 21, 2020
1 parent bf13e33 commit 782a0d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/checks/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export const builderToPostCheck = (state: AppState) => {
if (check.type === 'deadman') {
return toDeadManPostCheck(alertBuilder, check)
}

if (check.type === 'custom') {
return {...check, status: check.activeStatus}
}
}

const toDeadManPostCheck = (
Expand Down

0 comments on commit 782a0d0

Please sign in to comment.