Skip to content

Commit

Permalink
Bugfix for span values in search
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Feb 14, 2024
1 parent 60e3316 commit eeeee55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Entities.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export const Entities = ({
const queryLower = newQuery.toLowerCase();
return entities.filter(entity => searchAttributes.some(attr => {
const val = valueForSort(attr, entity);
return isEmpty(val) ? false : val.toLowerCase().indexOf(queryLower) > -1
//When the application is unknown in Manage then the val is a React span child object
return (isEmpty(val) || typeof val !== "string" || val.toLowerCase === undefined) ? false : val.toLowerCase().indexOf(queryLower) > -1;
}));
};

Expand Down

0 comments on commit eeeee55

Please sign in to comment.