Merge pull request #14977 from influxdata/fix/put-to-patch-for-checks
fix(ui): change patchCheck to putCheck for updating check in UIpull/14981/head
commit
50209810bc
|
@ -156,7 +156,7 @@ export const saveCheckFromTimeMachine = () => async (
|
|||
export const updateCheck = (check: Partial<Check>) => async (
|
||||
dispatch: Dispatch<Action | NotificationAction>
|
||||
) => {
|
||||
const resp = await api.patchCheck({checkID: check.id, data: check as Check})
|
||||
const resp = await api.putCheck({checkID: check.id, data: check as Check})
|
||||
|
||||
if (resp.status === 200) {
|
||||
dispatch(setCheck(resp.data))
|
||||
|
|
Loading…
Reference in New Issue