Skip to content

Commit c81cf2a

Browse files
author
Ray Foss
authored
Current getter should support id 0
fixes #243
1 parent 2bac1b2 commit c81cf2a

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 ? state.keyedById[state.currentId] : null
59+
return state.currentId === null ? state.keyedById[state.currentId] : null
6060
},
6161
getCopy (state) {
6262
return state.copy ? state.copy : null

0 commit comments

Comments
 (0)