We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1dcae commit 763f03dCopy full SHA for 763f03d
packages/renderless/src/transfer-panel/index.ts
@@ -67,7 +67,7 @@ export const getFilterData =
67
if (typeof props.filterMethod === 'function') {
68
return props.filterMethod(state.query, item)
69
} else {
70
- const label = item[state.labelProp] || item[state.keyProp].toString()
+ const label = item[state.labelProp] || item[state.keyProp]?.toString() || ''
71
72
return label.toLowerCase().includes(state.query.toLowerCase())
73
}
0 commit comments