Object.hasOwn & hasOwnProperty replace with lodash has (#367)
* Object.hasOwn & hasOwnProperty replace with lodash has * fix _has
This commit is contained in:
3
client/mixins/forms/input.js
vendored
3
client/mixins/forms/input.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user