The FAILURE action dispatched in ajaxRequestAction is not aligned with the bookmarks, powerStatus and statistics reducers: - Moving to axios returns Error object instead of a string - The payload doesn't contain "id" but "item"
This patch fixes that problem and makes components work on failures from API.
In addition, tests were added and fixed to avoid regressions.
Fixes #23709 - Fix ajaxRequestAction failure dispatch
The FAILURE action dispatched in ajaxRequestAction is not
aligned with the bookmarks, powerStatus and statistics
reducers:
- Moving to axios returns Error object instead of a string
- The payload doesn't contain "id" but "item"
This patch fixes that problem and makes components work
on failures from API.
In addition, tests were added and fixed to avoid regressions.
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>