Skip to content

Commit

Permalink
find getter now supports params as ref
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Apr 29, 2020
1 parent 8c4b7c9 commit c8c2f7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service-module/service-module.getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function makeServiceGetters() {
return state.ids.map(id => state.keyedById[id])
},
find: state => params => {
params = params.value || params // Unwrap a ref
params = { ...params } || {}

// Set params.temps to true to include the tempsById records
Expand Down

0 comments on commit c8c2f7f

Please sign in to comment.