Skip to content

Commit

Permalink
add typename for mutation complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Forfold committed Jan 10, 2024
1 parent b704f4e commit d86eba2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/app/schedules/on-call-notifications/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ export function useSetOnCallRulesSubmit(
}

const [m, commit] = useMutation(updateMutation)
return { m, submit: () => commit(variables).then(() => {}) }
return {
m,
submit: () =>
commit(variables, { additionalTypenames: ['Schedule'] }).then(() => {}),
}
}

export type UpdateOnCallRuleState = {
Expand Down

0 comments on commit d86eba2

Please sign in to comment.