Object.hasOwn & hasOwnProperty replace with lodash has (#367)

* Object.hasOwn & hasOwnProperty replace with lodash has

* fix _has
This commit is contained in:
Chirag Chhatrala
2024-04-03 15:19:33 +05:30
committed by GitHub
parent 615ac88f89
commit a7517252c1
13 changed files with 37 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import { themes } from '~/lib/forms/form-themes.js'
import { default as _has } from 'lodash/has'
export default {
props: {
@@ -31,7 +32,7 @@ export default {
}
},
hasValidation () {
return this.form !== null && this.form !== undefined && this.form.hasOwnProperty('errors')
return this.form !== null && this.form !== undefined && _has(this.form, 'errors')
},
compVal: {
set (val) {