We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9114239 commit ab9d45eCopy full SHA for ab9d45e
1 file changed
lib/public/views/Statistics/StatisticsPageModel.js
@@ -101,7 +101,13 @@ class StatisticsTabbedPanelModel extends TabbedPanelModel {
101
super(Object.values(STATISTICS_PANELS_KEYS));
102
this._observableData = ObservableData.builder()
103
.initialValue(RemoteData.notAsked())
104
- .apply((remoteData) => remoteData.map({ Success: ({ data }) => data }))
+ // TODO use RemoteData.map when ready
105
+ .apply((remoteData) => remoteData.match({
106
+ NotAsked: () => RemoteData.notAsked(),
107
+ Loading: () => RemoteData.loading(),
108
+ Success: ({ data }) => RemoteData.success(data),
109
+ Failure: (error) => RemoteData.failure(error),
110
+ }))
111
.build();
112
this._observableData.bubbleTo(this);
113
0 commit comments