diff --git a/src/store/generator.ts b/src/store/generator.ts index 252cbee9..7b7021da 100644 --- a/src/store/generator.ts +++ b/src/store/generator.ts @@ -196,7 +196,9 @@ export const createVuexCRUD = commit(DefaultVuexMutation.SetError, null) commit(DefaultVuexMutation.SetLoading, true) try { - const stringQuery = stringifyQuery(assign({}, queryParams.getOne || {})) + const stringQuery = stringifyQuery( + assign({}, queryParams.getOne || {}, queryParams.get || {}), + ) const { data } = await api.get<{ data: Item }>(`/${endpoint}/id:${id}${stringQuery}`) // @ts-ignore type is correct, but TS is screaming commit(DefaultVuexMutation.SetSelected, data.data) diff --git a/src/store/productSets.ts b/src/store/productSets.ts index e5fa6c0f..f07dc4bd 100644 --- a/src/store/productSets.ts +++ b/src/store/productSets.ts @@ -54,5 +54,5 @@ export const productSets = createVuexCRUD