mirror of
https://github.com/maunium/stickerpicker.git
synced 2025-01-30 11:54:57 +01:00
Enable searching by pack name
This commit is contained in:
parent
f59406a47a
commit
cbbadac979
@ -109,6 +109,7 @@ class App extends Component {
|
||||
const packsWithFilteredStickers = allPacks.map(pack => ({
|
||||
...pack,
|
||||
stickers: pack.stickers.filter(sticker =>
|
||||
sanitizeString(pack.title).includes(searchTerm) ||
|
||||
sanitizeString(sticker.body).includes(searchTerm) ||
|
||||
sanitizeString(sticker.id).includes(searchTerm)
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user