Merge pull request #14977 from influxdata/fix/put-to-patch-for-checks

fix(ui): change patchCheck to putCheck for updating check in UI
pull/14981/head
Michael Desa 2019-09-05 15:38:59 -04:00 committed by GitHub
commit 50209810bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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))