Skip to content

Commit

Permalink
fix: replace || operator with nullish coalescing operator ??
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed Nov 19, 2024
1 parent 26795f0 commit f63af16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default {
return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName];
},
controlled() {
return this.$inProps.hasOwnProperty('modelValue') || (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
return this.$inProps.hasOwnProperty('modelValue') ?? (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
},
// @deprecated use $filled instead
filled() {
Expand Down

0 comments on commit f63af16

Please sign in to comment.