Guard against missing meta section
This commit is contained in:
parent
dc65bbc051
commit
7981473b23
1 changed files with 6 additions and 4 deletions
10
src/App.js
10
src/App.js
|
|
@ -88,12 +88,14 @@ export default {
|
||||||
},
|
},
|
||||||
currentTheme () {
|
currentTheme () {
|
||||||
if (useInterfaceStore().styleDataUsed) {
|
if (useInterfaceStore().styleDataUsed) {
|
||||||
const themeName = useInterfaceStore().styleDataUsed.find(x => x.component === '@meta').directives.name
|
const styleMeta = useInterfaceStore().styleDataUsed.find(x => x.component === '@meta')
|
||||||
|
|
||||||
return themeName.replaceAll(" ", "-").toLowerCase()
|
if (styleMeta !== undefined) {
|
||||||
} else {
|
return styleMeta.directives.name.replaceAll(" ", "-").toLowerCase()
|
||||||
return 'stock'
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 'stock'
|
||||||
},
|
},
|
||||||
layoutModalClass () {
|
layoutModalClass () {
|
||||||
return '-' + this.layoutType
|
return '-' + this.layoutType
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue