From f63af16ad728ac1008f655b40779566da738ec8b Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Tue, 19 Nov 2024 22:09:49 +0900 Subject: [PATCH] fix: replace || operator with nullish coalescing operator ?? --- packages/core/src/baseeditableholder/BaseEditableHolder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/baseeditableholder/BaseEditableHolder.vue b/packages/core/src/baseeditableholder/BaseEditableHolder.vue index b37a722548..bb63fdd0d7 100644 --- a/packages/core/src/baseeditableholder/BaseEditableHolder.vue +++ b/packages/core/src/baseeditableholder/BaseEditableHolder.vue @@ -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() {