mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
InboxPage uses storableError func and correct proptype validation.
This commit is contained in:
parent
4d9aaf1758
commit
a2dc539022
2 changed files with 6 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { reverse, sortBy } from 'lodash';
|
||||
import { storableError } from '../../util/errors';
|
||||
import { parse } from '../../util/urlHelpers';
|
||||
import { addMarketplaceEntities } from '../../ducks/marketplaceData.duck';
|
||||
|
||||
|
|
@ -102,7 +103,7 @@ export const loadData = (params, search) => (dispatch, getState, sdk) => {
|
|||
return response;
|
||||
})
|
||||
.catch(e => {
|
||||
dispatch(fetchOrdersOrSalesError(e));
|
||||
dispatch(fetchOrdersOrSalesError(storableError(e)));
|
||||
throw e;
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import { TopbarContainer } from '../../containers';
|
|||
import { loadData } from './InboxPage.duck';
|
||||
import css from './InboxPage.css';
|
||||
|
||||
const { arrayOf, bool, instanceOf, number, oneOf, shape, string } = PropTypes;
|
||||
const { arrayOf, bool, number, oneOf, shape, string } = PropTypes;
|
||||
|
||||
const formatDate = (intl, date) => {
|
||||
return {
|
||||
|
|
@ -303,11 +303,11 @@ InboxPageComponent.propTypes = {
|
|||
tab: string.isRequired,
|
||||
}).isRequired,
|
||||
|
||||
authInfoError: instanceOf(Error),
|
||||
authInfoError: propTypes.error,
|
||||
currentUser: propTypes.currentUser,
|
||||
fetchInProgress: bool.isRequired,
|
||||
fetchOrdersOrSalesError: instanceOf(Error),
|
||||
logoutError: instanceOf(Error),
|
||||
fetchOrdersOrSalesError: propTypes.error,
|
||||
logoutError: propTypes.error,
|
||||
pagination: propTypes.pagination,
|
||||
providerNotificationCount: number,
|
||||
scrollingDisabled: bool.isRequired,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue