Revision 7d6d573e
Added by Boaz Shuster almost 6 years ago
webpack/assets/javascripts/react_app/components/statistics/StatisticsChartsList.js | ||
---|---|---|
chart={chart}
|
||
noDataMsg={__('No data available')}
|
||
tip={__('Expand the chart')}
|
||
errorText={chart.error}
|
||
errorText={chart.error && chart.error.message}
|
||
id={chart.id}
|
||
status={getStatusFromChart(chart)}
|
||
title={chart.title}
|
Also available in: Unified diff
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>