Drupal from 10.6.17 to 11.4.7
This commit is contained in:
+2665
-39
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -62,6 +62,12 @@ export default {
|
||||
MA.get(`/materio_sapi/search_form?`+q)
|
||||
.then(({data}) => {
|
||||
// console.log('getSearchForm')
|
||||
// guard against unexpected response body (truncated / non json)
|
||||
// which would crash Vue.compile(undefined) in SearchForm
|
||||
if (typeof data.rendered !== 'string') {
|
||||
console.warn('SearchBlock getSearchForm unexpected data', data)
|
||||
return
|
||||
}
|
||||
this.form = data.rendered
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@@ -44,7 +44,14 @@ export default {
|
||||
MA.get('materio_decoupled/ajax/getheadermenu')
|
||||
.then(({data}) => {
|
||||
// console.log('HeaderMenu getMenuBlockHtml data', data)
|
||||
this.html = data.rendered // record the html src into data
|
||||
// record the html src into data
|
||||
// guard against unexpected response body (truncated / non json)
|
||||
// which would crash Vue.compile(undefined)
|
||||
if (typeof data.rendered !== 'string') {
|
||||
console.warn('HeaderMenu getMenuBlockHtml unexpected data', data)
|
||||
return
|
||||
}
|
||||
this.html = data.rendered
|
||||
})
|
||||
.catch((error) => {
|
||||
console.warn('Issue with getMenuBlockHtml', error)
|
||||
|
||||
Reference in New Issue
Block a user