Skip to content

Commit

Permalink
Support id refs in get getter
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Jun 22, 2020
1 parent c03c936 commit 511ae39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service-module/service-module.getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default function makeServiceGetters() {
id,
params = {}
) => {
if (isRef(id)) {
id = id.value
}
const record = keyedById[id] && select(params, idField)(keyedById[id])
if (record) {
return record
Expand Down

0 comments on commit 511ae39

Please sign in to comment.