Skip to content

Commit 89b6887

Browse files
committed
fix(useSelectableList): correctly handle null object
1 parent 39c7fd7 commit 89b6887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/composables/useSelectableList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function useSelectableList (props: ExtractPropTypes<typeof useSelectableL
3838
const getTrackBy = (option: SelectableOption): string | number => {
3939
const key = props.trackBy ? getOptionProperty(option, props.trackBy) : getValue(option)
4040

41-
if (typeof key === 'object') {
41+
if (isObject(key)) {
4242
return getObjectId(key)
4343
}
4444

0 commit comments

Comments
 (0)