diff --git a/jam-ui/src/helpers/rest.js b/jam-ui/src/helpers/rest.js index e3f4b28a1..fbf0c6744 100644 --- a/jam-ui/src/helpers/rest.js +++ b/jam-ui/src/helpers/rest.js @@ -755,7 +755,8 @@ export const startRecording = (options) => { method: 'POST', body: JSON.stringify(options) }) - .then(response => resolve(response)) + .then(response => response.json()) + .then(data => resolve(data)) .catch(error => reject(error)); }); }; @@ -767,7 +768,8 @@ export const stopRecording = (options) => { method: 'POST', body: JSON.stringify(rest) }) - .then(response => resolve(response)) + .then(response => response.json()) + .then(data => resolve(data)) .catch(error => reject(error)); }); }; @@ -776,7 +778,8 @@ export const getRecordingPromise = (options) => { const { id } = options; return new Promise((resolve, reject) => { apiFetch(`/recordings/${id}`) - .then(response => resolve(response)) + .then(response => response.json()) + .then(data => resolve(data)) .catch(error => reject(error)); }); };