Actions
Refactor #28362
closedFix API Middleware failure payload
Actions
Added by Redmine Asana Bot about 6 years ago. Updated about 6 years ago.
What failure? when?
Issues with no info aren't very useful when they just appear here from a bot so there is no one to ask for further information.
Noone outside of the asana users know if someone is already working on an issue or try to fix them before they are copied from asana, and the reviewer has no background to what the PR is trying to fix.
From: `payload: { error, payload }`
To: `payload: { ...payload, error }`
the `payload` data will be accessed in the `reducer` as `payload` instead of `payload.payload`
Sorry about that, we started to use the bot and I forgot to add some description before it will generate it automatically.
Update the info above,
basically the change is in the payload object which is being accessed in the reducer
The comment you added describes the change you did in the pr, not why it is needed, what is the bug it is trying to fix or how it can be reproduced and tested.
thanks, actually it is more of a refactoring, not a bug
so it will look cleaner to access the payload of an API call failure:
From: `payload: { error, payload }`
To: `payload: { ...payload, error }`
the `payload` data will be accessed in the `reducer` as `payload` instead of `payload.payload`
Applied in changeset 7acac44c53c996bcdfa49a2e2785d0773ab934b8.