mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 10:16:10 +02:00
fix lint no-prototype-builtins
This commit is contained in:
@@ -98,7 +98,7 @@ export default defineComponent({
|
||||
|
||||
created() {
|
||||
for (const item in this.form) {
|
||||
this.values[item] = this.form[item].hasOwnProperty('default') ? this.form[item].default : null;
|
||||
this.values[item] = this.form[item].default ?? null;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user