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 }, }) })