OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ffe1a9
)
remove infinite call when call list fail
author
Yongfeng LI
<wliyongfeng@gmail.com>
Wed, 3 Jan 2018 04:04:45 +0000
(12:04 +0800)
committer
Yongfeng LI
<wliyongfeng@gmail.com>
Wed, 3 Jan 2018 04:04:45 +0000
(12:04 +0800)
src/features/shared/actions/list.js
patch
|
blob
|
history
diff --git
a/src/features/shared/actions/list.js
b/src/features/shared/actions/list.js
index
728a361
..
199843e
100644
(file)
--- a/
src/features/shared/actions/list.js
+++ b/
src/features/shared/actions/list.js
@@
-92,13
+92,7
@@
export default function(type, options = {}) {
refresh: refresh,
})
}).catch(err => {
- if (options.defaultKey && filter.indexOf('\'') < 0 && filter.indexOf('=') < 0) {
- dispatch(pushList({
- filter: `${options.defaultKey}='${query.filter}'`
- }, null, {replace: true}))
- } else {
- return dispatch({type: 'ERROR', payload: err})
- }
+ return dispatch({type: 'ERROR', payload: err})
})
}
}