From 35ab21ab043d472ed3534e447b0c35e9a94a1537 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 17 Mar 2021 21:25:06 +0000 Subject: [PATCH] Fixed: Marking history as failed --- frontend/src/Store/Actions/authorHistoryActions.js | 3 ++- frontend/src/Store/Actions/bookHistoryActions.js | 3 ++- frontend/src/Store/Actions/historyActions.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/Store/Actions/authorHistoryActions.js b/frontend/src/Store/Actions/authorHistoryActions.js index 9ba02bab2..f22374ab3 100644 --- a/frontend/src/Store/Actions/authorHistoryActions.js +++ b/frontend/src/Store/Actions/authorHistoryActions.js @@ -82,7 +82,8 @@ export const actionHandlers = handleThunks({ method: 'POST', data: { id: historyId - } + }, + dataType: 'json' }).request; promise.done(() => { diff --git a/frontend/src/Store/Actions/bookHistoryActions.js b/frontend/src/Store/Actions/bookHistoryActions.js index 94e96ec96..aecea42f4 100644 --- a/frontend/src/Store/Actions/bookHistoryActions.js +++ b/frontend/src/Store/Actions/bookHistoryActions.js @@ -90,7 +90,8 @@ export const actionHandlers = handleThunks({ method: 'POST', data: { id: historyId - } + }, + dataType: 'json' }).request; promise.done(() => { diff --git a/frontend/src/Store/Actions/historyActions.js b/frontend/src/Store/Actions/historyActions.js index 18c868424..2a32902dd 100644 --- a/frontend/src/Store/Actions/historyActions.js +++ b/frontend/src/Store/Actions/historyActions.js @@ -261,7 +261,8 @@ export const actionHandlers = handleThunks({ method: 'POST', data: { id - } + }, + dataType: 'json' }).request; promise.done(() => {