Skip to content

Commit c1b2613

Browse files
committed
More-relaxed check for null/undefined ids
1 parent 065b48c commit c1b2613

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
@@ -55,7 +55,7 @@ export default function makeServiceGetters (servicePath) {
5555
return keyedById[id] ? select(params, idField)(keyedById[id]) : undefined
5656
},
5757
current (state) {
58-
return state.currentId === null ? null : state.keyedById[state.currentId]
58+
return state.currentId != null ? state.keyedById[state.currentId] : null
5959
},
6060
getCopy (state) {
6161
return state.copy ? state.copy : null

0 commit comments

Comments
 (0)