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 02643b8 commit c185becCopy full SHA for c185bec
src/service-module/getters.js
@@ -56,7 +56,7 @@ export default function makeServiceGetters (servicePath) {
56
return keyedById[id] ? select(params, idField)(keyedById[id]) : undefined
57
},
58
current (state) {
59
- return state.currentId === null ? state.keyedById[state.currentId] : null
+ return state.currentId === null ? null : state.keyedById[state.currentId]
60
61
getCopy (state) {
62
return state.copy ? state.copy : null
0 commit comments