Skip to content

Commit

Permalink
fix(linter): TS error from refactor resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
asalem1 committed Oct 24, 2019
1 parent 34f5ce0 commit edf2a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/alerting/actions/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const saveCheckFromTimeMachine = () => async (
alerting: {check},
} = getActiveTimeMachine(state)

const labels = get(check, 'labels', [])
const labels = get(check, 'labels', []) as Label[]
const checkWithOrg = {
...check,
query: draftQueries[0],
Expand Down Expand Up @@ -255,7 +255,7 @@ export const cloneCheck = (check: Check) => async (
const allCheckNames = list.map(c => c.name)

const clonedName = incrementCloneName(allCheckNames, check.name)
const labels = get(check, 'labels', [])
const labels = get(check, 'labels', []) as Label[]
const data = {
...check,
name: clonedName,
Expand Down

0 comments on commit edf2a5b

Please sign in to comment.