Browse Source

trying to fixe gql fragment bug

bach 3 years ago
parent
commit
3114581e31

+ 1 - 1
web/themes/custom/materiotheme/assets/dist/main.js

@@ -25,7 +25,7 @@
       ${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()`{
           materiaux(ids: [${t}]) {
-            ...MateriauFields
+            ...${n}
           }
         }
         ${n}

BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


+ 1 - 1
web/themes/custom/materiotheme/vuejs/store/index.js

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