From e46a329024a018315b29ae3f5f5a0241d470906b Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Thu, 11 May 2023 14:51:22 +1000 Subject: [PATCH] fix(#628): add prefix to included resources fetch (#634) * fix(#628): add prefix to included resources fetch * chore(#628): add changeset --------- Co-authored-by: Alejandro G. Lacasa --- .changeset/eighty-bikes-float.md | 5 +++++ packages/druxt/src/stores/druxt.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/eighty-bikes-float.md diff --git a/.changeset/eighty-bikes-float.md b/.changeset/eighty-bikes-float.md new file mode 100644 index 000000000..7e3093a17 --- /dev/null +++ b/.changeset/eighty-bikes-float.md @@ -0,0 +1,5 @@ +--- +"druxt": patch +--- + +fix(#628): add prefix to included resources fetch diff --git a/packages/druxt/src/stores/druxt.js b/packages/druxt/src/stores/druxt.js index 845048f91..5218956b8 100644 --- a/packages/druxt/src/stores/druxt.js +++ b/packages/druxt/src/stores/druxt.js @@ -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 }, }) })