Skip to content

Commit c8c2f7f

Browse files
committed
find getter now supports params as ref
1 parent 8c4b7c9 commit c8c2f7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/service-module/service-module.getters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default function makeServiceGetters() {
2121
return state.ids.map(id => state.keyedById[id])
2222
},
2323
find: state => params => {
24+
params = params.value || params // Unwrap a ref
2425
params = { ...params } || {}
2526

2627
// Set params.temps to true to include the tempsById records

0 commit comments

Comments
 (0)