summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-07-28 10:31:16 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-28 10:31:16 +0900
commit8ec6b2ec11f6c7e0b237a879c14be1174c780451 (patch)
treed737b32a637fcc3a47efd19d9ad909ee05e08c80 /src
parentHTTPリクエストのKeep-AliveとPrxoy対応など (#5226) (diff)
downloadsharkey-8ec6b2ec11f6c7e0b237a879c14be1174c780451.tar.gz
sharkey-8ec6b2ec11f6c7e0b237a879c14be1174c780451.tar.bz2
sharkey-8ec6b2ec11f6c7e0b237a879c14be1174c780451.zip
Fix error
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/settings/profile.vue26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/client/app/common/views/components/settings/profile.vue b/src/client/app/common/views/components/settings/profile.vue
index 47b289c8ce..0c291f9029 100644
--- a/src/client/app/common/views/components/settings/profile.vue
+++ b/src/client/app/common/views/components/settings/profile.vue
@@ -159,6 +159,14 @@ export default Vue.extend({
username: null,
location: null,
description: null,
+ fieldName0: null,
+ fieldValue0: null,
+ fieldName1: null,
+ fieldValue1: null,
+ fieldName2: null,
+ fieldValue2: null,
+ fieldName3: null,
+ fieldValue3: null,
lang: null,
birthday: null,
avatarId: null,
@@ -210,16 +218,14 @@ export default Vue.extend({
this.carefulBot = this.$store.state.i.carefulBot;
this.autoAcceptFollowed = this.$store.state.i.autoAcceptFollowed;
- if (this.$store.state.i.fields) {
- this.fieldName0 = this.$store.state.i.fields[0].name;
- this.fieldValue0 = this.$store.state.i.fields[0].value;
- this.fieldName1 = this.$store.state.i.fields[1].name;
- this.fieldValue1 = this.$store.state.i.fields[1].value;
- this.fieldName2 = this.$store.state.i.fields[2].name;
- this.fieldValue2 = this.$store.state.i.fields[2].value;
- this.fieldName3 = this.$store.state.i.fields[3].name;
- this.fieldValue3 = this.$store.state.i.fields[3].value;
- }
+ this.fieldName0 = this.$store.state.i.fields[0] ? this.$store.state.i.fields[0].name : null;
+ this.fieldValue0 = this.$store.state.i.fields[0] ? this.$store.state.i.fields[0].value : null;
+ this.fieldName1 = this.$store.state.i.fields[1] ? this.$store.state.i.fields[1].name : null;
+ this.fieldValue1 = this.$store.state.i.fields[1] ? this.$store.state.i.fields[1].value : null;
+ this.fieldName2 = this.$store.state.i.fields[2] ? this.$store.state.i.fields[2].name : null;
+ this.fieldValue2 = this.$store.state.i.fields[2] ? this.$store.state.i.fields[2].value : null;
+ this.fieldName3 = this.$store.state.i.fields[3] ? this.$store.state.i.fields[3].name : null;
+ this.fieldValue3 = this.$store.state.i.fields[3] ? this.$store.state.i.fields[3].value : null;
},
methods: {