summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-07-04 16:39:04 +0200
committerJohann150 <johann.galle@protonmail.com>2022-07-04 16:39:04 +0200
commitd748ba2c51211d3a2833fd1cb6ef898bc149d486 (patch)
treec36fae05f983c74b7156317190ccab821d074f7d /packages/client/src/components
parentfix lint no-undef (diff)
downloadsharkey-d748ba2c51211d3a2833fd1cb6ef898bc149d486.tar.gz
sharkey-d748ba2c51211d3a2833fd1cb6ef898bc149d486.tar.bz2
sharkey-d748ba2c51211d3a2833fd1cb6ef898bc149d486.zip
fix lint no-prototype-builtins
Diffstat (limited to 'packages/client/src/components')
-rw-r--r--packages/client/src/components/form-dialog.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/components/form-dialog.vue b/packages/client/src/components/form-dialog.vue
index 5fd9ec460b..f05dde16f8 100644
--- a/packages/client/src/components/form-dialog.vue
+++ b/packages/client/src/components/form-dialog.vue
@@ -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;
}
},