Skip to content

Commit c185bec

Browse files
authored
coffee
1 parent 02643b8 commit c185bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/getters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function makeServiceGetters (servicePath) {
5656
return keyedById[id] ? select(params, idField)(keyedById[id]) : undefined
5757
},
5858
current (state) {
59-
return state.currentId === null ? state.keyedById[state.currentId] : null
59+
return state.currentId === null ? null : state.keyedById[state.currentId]
6060
},
6161
getCopy (state) {
6262
return state.copy ? state.copy : null

0 commit comments

Comments
 (0)