diff --git a/ui/src/alerting/actions/checks.ts b/ui/src/alerting/actions/checks.ts index a5fbe24ff89..fc593dcfba5 100644 --- a/ui/src/alerting/actions/checks.ts +++ b/ui/src/alerting/actions/checks.ts @@ -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], @@ -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,