fixed graphql linked_materials entity_reference translation
This commit is contained in:
@@ -29,7 +29,7 @@ export default {
|
||||
props: ['item'],
|
||||
data(){
|
||||
return {
|
||||
alias: this.item.view_node.replace(/^.?\/blabla\//g, '')
|
||||
alias: this.item.view_node.replace(/^.*\/blabla\//g, '')
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
|
@@ -117,7 +117,7 @@ export default {
|
||||
console.log('loadMaterial', this.item.id)
|
||||
this.loading = true
|
||||
let ast = gql`{
|
||||
materiau(id: ${this.item.id}) {
|
||||
materiau(id: ${this.item.id}, lang: "${drupalDecoupled.lang_code}") {
|
||||
...MateriauFields
|
||||
}
|
||||
}
|
||||
|
@@ -213,7 +213,7 @@ export default {
|
||||
this.loading = true
|
||||
|
||||
let ast = gql`{
|
||||
route(path: "${this.path}") {
|
||||
route(path: "${this.path}", lang: "${drupalDecoupled.lang_code}") {
|
||||
...ArticleFields
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user