aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/setting.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2024-03-05 16:29:21 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2024-03-05 16:29:21 +0000
commit943fee9fbc3768733417033191540773ac76c711 (patch)
treeee0ced4fab3b95a99f684dd08adb054a5ce934e3 /src/components/settings_modal/helpers/setting.js
parentdb33d58ba7a91da3461556a8a296991cad53afa8 (diff)
parent70258a21764fa72a34a6059e9902db1661a48382 (diff)
Merge branch 'admin-emoji-settings' into 'develop'
Admin emoji pack settings See merge request pleroma/pleroma-fe!1886
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