Transformations: Add description to what is searched (#94501)

Add transformation description to what is searched
This commit is contained in:
Kristina 2024-10-15 10:26:44 -05:00 committed by GitHub
parent 89da7d6fe5
commit 6e39ea5e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,10 @@ export function TransformationsDrawer(props: TransformationsDrawerProps) {
) { ) {
return false; return false;
} }
return t.name.toLocaleLowerCase().includes(drawerState.search.toLocaleLowerCase()); return (
t.name.toLocaleLowerCase().includes(drawerState.search.toLocaleLowerCase()) ||
t.description?.toLocaleLowerCase().includes(drawerState.search.toLocaleLowerCase())
);
}); });
const searchBoxSuffix = ( const searchBoxSuffix = (