aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/setting.js
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@kotobank.ch>2023-12-21 00:48:14 +0300
committerEkaterina Vaartis <vaartis@kotobank.ch>2023-12-21 00:48:14 +0300
commitbfdad56b0d4b4f8ed89295661ff8abba22dca7f0 (patch)
treec3fd270f9785e35962ddc617fcd6b97922b2a423 /src/components/settings_modal/helpers/setting.js
parentf9c85c0c491fa800054250a814978e6f8fcc439a (diff)
Make the frontend config work somewhat even without DB config
Diffstat (limited to 'src/components/settings_modal/helpers/setting.js')
-rw-r--r--src/components/settings_modal/helpers/setting.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/settings_modal/helpers/setting.js b/src/components/settings_modal/helpers/setting.js
index b3add346..abf9cfdf 100644
--- a/src/components/settings_modal/helpers/setting.js
+++ b/src/components/settings_modal/helpers/setting.js
@@ -195,7 +195,8 @@ export default {
}
},
canHardReset () {
- return this.realSource === 'admin' && this.$store.state.adminSettings.modifiedPaths.has(this.canonPath.join(' -> '))
+ return this.realSource === 'admin' && this.$store.state.adminSettings.modifiedPaths &&
+ this.$store.state.adminSettings.modifiedPaths.has(this.canonPath.join(' -> '))
},
matchesExpertLevel () {
return (this.expert || 0) <= this.$store.state.config.expertLevel > 0