fix(customChecks): bring back custom check saving (#18194)

pull/18199/head
Deniz Kusefoglu 2020-05-21 16:56:30 -07:00 committed by GitHub
parent bf13e339fe
commit 782a0d0f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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 = (