Skip to content

Commit ec31c5e

Browse files
committed
Fix compatibility with client-side feathers-memory
1 parent b7a5b0d commit ec31c5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/service-module/service-module.actions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export default function makeServiceActions(service: Service<any>) {
1313
params = params || {}
1414
params = fastCopy(params)
1515

16+
// For working with client-side services, paginate.default must be truthy.
17+
if (params.paginate === true) {
18+
params.paginate = { default: true }
19+
}
20+
1621
commit('setPending', 'find')
1722

1823
return service

0 commit comments

Comments
 (0)