From b07b20c5e86bcec2b22fea8a41bd632d8e393e1c Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 29 May 2018 22:19:17 +0200 Subject: [PATCH] Client: fix --- .../Activities/ActivityDisplay/ActivityCardHeader.jsx | 8 ++++---- mpwo_client/src/utils.js | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx b/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx index eebf1775..3c85cd74 100644 --- a/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx +++ b/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx @@ -13,10 +13,10 @@ export default function ActivityCardHeader(props) {
- {activity.previous_activity ? ( + {activity.next_activity ? (
- {activity.next_activity ? ( + {activity.previous_activity ? ( { } const request = new Request(params.url, requestParams) return fetch(request) - .then(response => response.json()) + .then(response => params.method === 'DELETE' + ? response + : response.json()) .catch(error => error) }