Skip to content

Commit

Permalink
fix(#628): add prefix to included resources fetch (#634)
Browse files Browse the repository at this point in the history
* fix(#628): add prefix to included resources fetch

* chore(#628): add changeset

---------

Co-authored-by: Alejandro G. Lacasa <[email protected]>
  • Loading branch information
Decipher and nx-alejandrolacasa authored May 11, 2023
1 parent 39af33a commit e46a329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eighty-bikes-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"druxt": patch
---

fix(#628): add prefix to included resources fetch
3 changes: 2 additions & 1 deletion packages/druxt/src/stores/druxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ const DruxtStore = ({ store }) => {

return data.filter((o) => typeof o === 'object' && o).map((o) => {
return dispatch('getResource', {
type: o.type,
id: o.id,
prefix,
type: o.type,
query: { ...queryObject, include },
})
})
Expand Down

0 comments on commit e46a329

Please sign in to comment.