Skip to content

Commit

Permalink
feat(frontend): Make Block description searchable on Block list palette
Browse files Browse the repository at this point in the history
  • Loading branch information
majdyz committed Nov 29, 2024
1 parent f8b00e5 commit 0e5d31f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export const BlocksControl: React.FC<BlocksControlProps> = ({
(block: Block) =>
(block.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
beautifyString(block.name)
.toLowerCase()
.includes(searchQuery.toLowerCase()) ||
block.description
.toLowerCase()
.includes(searchQuery.toLowerCase())) &&
(!selectedCategory ||
Expand Down

0 comments on commit 0e5d31f

Please sign in to comment.