We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 370cc61 + 4677f36 commit b8f2bd9Copy full SHA for b8f2bd9
src/routes/components/resourceTypeahead/resourceFetch.tsx
@@ -63,7 +63,7 @@ const ResourceFetch: React.FC<ResourceFetchProps> = ({
63
if (resource && resource.data && resource.data.length > 0 && resourceFetchStatus !== FetchStatus.inProgress) {
64
options = resource.data.map(item => {
65
// The resource API typically returns just a value, but account_alias, cluster_alias, and instance_name may be preferred keys.
66
- const value = !isNaN(search as any) ? item.value : item[resourceKey] || item.value;
+ const value = item[resourceKey]?.includes(search) ? item[resourceKey] : item.value;
67
return {
68
key: value,
69
name: value,
0 commit comments