diff --git a/packages/nc-gui/components/nc/List/index.vue b/packages/nc-gui/components/nc/List/index.vue index 64f6cc6f0e..4ae20e2611 100644 --- a/packages/nc-gui/components/nc/List/index.vue +++ b/packages/nc-gui/components/nc/List/index.vue @@ -196,7 +196,7 @@ const handleResetHoverEffect = (clearActiveOption = false, newActiveIndex?: numb * It updates the model value, emits a change event, and optionally closes the dropdown. */ const handleSelectOption = (option: NcListItemType, index?: number) => { - if (!option?.[optionValueKey] || option?.disabled) return + if (!ncIsObject(option) || !(optionValueKey in option) || option.disabled) return if (index !== undefined) { activeOptionIndex.value = index