Allow name property of user to be null
This commit is contained in:
@@ -42,7 +42,7 @@ export default Vue.extend({
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.name = (this as any).os.i.name;
|
||||
this.name = (this as any).os.i.name || '';
|
||||
this.location = (this as any).os.i.account.profile.location;
|
||||
this.description = (this as any).os.i.description;
|
||||
this.birthday = (this as any).os.i.account.profile.birthday;
|
||||
@@ -53,7 +53,7 @@ export default Vue.extend({
|
||||
},
|
||||
save() {
|
||||
(this as any).api('i/update', {
|
||||
name: this.name,
|
||||
name: this.name || null,
|
||||
location: this.location || null,
|
||||
description: this.description || null,
|
||||
birthday: this.birthday || null
|
||||
|
Reference in New Issue
Block a user