Skip to content

Commit

Permalink
fix: Adjust the response to get the results
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-morais committed Mar 26, 2024
1 parent 66a0cd0 commit 84ec256
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/api/resources/flows/flowsTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ export default {
params,
cancelToken: cancelTokenSource.token,
});
return { data: response.data, status: 'success' };

const resultsResponse = {
results: response.results,
};

console.log(resultsResponse);

return { data: resultsResponse, status: 'success' };
} catch (error) {
if (axios.isCancel(error)) {
return { status: 'canceled' };
Expand Down

0 comments on commit 84ec256

Please sign in to comment.