Skip to content

Commit

Permalink
fix: Support executing queries from store
Browse files Browse the repository at this point in the history
The `getCollectionFromSlice` helper expects an object
with doctypes as key.
However, the method `this.store.getState()` returns a
larger object such as
`{ cozy: { documents: { [doctype]: ... }, queries: {} }`.

In this case, the `client.getCollectionFromState` method
is more appropriate.
  • Loading branch information
Merkur39 committed Aug 2, 2024
1 parent f010d35 commit 2651ce8
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 100 deletions.
Loading

0 comments on commit 2651ce8

Please sign in to comment.