trying to fixe gql fragment bug

This commit is contained in:
Bachir Soussi Chiadmi 2022-02-24 20:41:21 +01:00
parent d70a8c7fad
commit 3114581e31
3 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
${S()} ${S()}
`;s.Z.post("",{query:(0,c.S)(i)}).then((e=>{t("setProducts",e.data.data.products)})).catch((e=>{console.warn("Issue with loadProducts",e),Promise.reject(e)}))}}};r().use(o.ZP);const O=(0,a.M)(o.ZP.Store,{modules:{Common:d,User:g,Search:_,Blabla:w,Showrooms:k,Pages:T},mixins:{actions:{loadMaterialsGQL({dispatch:e},{ids:t,gqlfragment:n,callBack:i,callBackArgs:r}){const o=u()`{ `;s.Z.post("",{query:(0,c.S)(i)}).then((e=>{t("setProducts",e.data.data.products)})).catch((e=>{console.warn("Issue with loadProducts",e),Promise.reject(e)}))}}};r().use(o.ZP);const O=(0,a.M)(o.ZP.Store,{modules:{Common:d,User:g,Search:_,Blabla:w,Showrooms:k,Pages:T},mixins:{actions:{loadMaterialsGQL({dispatch:e},{ids:t,gqlfragment:n,callBack:i,callBackArgs:r}){const o=u()`{
materiaux(ids: [${t}]) { materiaux(ids: [${t}]) {
...MateriauFields ...${n}
} }
} }
${n} ${n}

View File

@ -39,7 +39,7 @@ export default createStore(Vuex.Store, {
const ast = gql`{ const ast = gql`{
materiaux(ids: [${ids}]) { materiaux(ids: [${ids}]) {
...MateriauFields ...${gqlfragment}
} }
} }
${gqlfragment} ${gqlfragment}