Skip to content

Commit 1371e7f

Browse files
authored
Merge pull request #56 from easeq/master
0.7.13
2 parents 0ad9f68 + 638945a commit 1371e7f

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flipbyte/redux-datatable",
3-
"version": "0.7.12",
3+
"version": "0.7.13",
44
"description": "React-Redux data table",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -20,7 +20,7 @@
2020
"test:watch": "nwb test-react --server"
2121
},
2222
"peerDependencies": {
23-
"lodash": ">=4.17.11",
23+
"lodash": ">=4.17.13",
2424
"react": "^16.8.6",
2525
"react-dom": "^16.8.6",
2626
"rxjs": "^6.4.0",
@@ -44,7 +44,7 @@
4444
"axios": "^0.19.0",
4545
"axios-observable": "^1.1.1",
4646
"bootstrap": "^4.3.1",
47-
"lodash": ">=4.17.11",
47+
"lodash": ">=4.17.13",
4848
"nwb": "0.23.x",
4949
"path-to-regexp": "^3.0.0",
5050
"react": "^16.8.6",

src/epics.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ofType } from 'redux-observable';
44
import { Observable, of, pipe } from 'rxjs';
55
import objectAssignDeep from 'object-assign-deep';
66
import { concatMap, mergeMap, map, takeUntil, filter, catchError } from 'rxjs/operators';
7+
import { throwError } from 'rxjs';
78
import { createNotification, NOTIFICATION_TYPE_SUCCESS, NOTIFICATION_TYPE_ERROR } from 'react-redux-notify';
89
import {
910
receiveData,
@@ -58,9 +59,9 @@ export const fetchDataEpic = ( action$, state$, { api }) => action$.pipe(
5859
return { response, data };
5960
}),
6061
map((payload) => receiveData({ name, payload })),
61-
catchError((error) => of(
62+
catchError((error) => of(
63+
createNotification({ type: NOTIFICATION_TYPE_ERROR, message: error.message }),
6264
cancelRequest({ name }),
63-
createNotification({ type: NOTIFICATION_TYPE_ERROR, message: error.message })
6465
)),
6566
takeUntil(action$.pipe(
6667
ofType(REQUEST_DATA_CANCEL),
@@ -91,8 +92,8 @@ export const deleteDataEpic = ( action$, state$, { api }) => action$.pipe(
9192
);
9293
}),
9394
catchError((error) => of(
95+
createNotification({ type: NOTIFICATION_TYPE_ERROR, message: error.message }),
9496
cancelRequest({ name }),
95-
createNotification({ type: NOTIFICATION_TYPE_ERROR, message: error.message })
9697
))
9798
);
9899
})

0 commit comments

Comments
 (0)