mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Simplify conditional
This commit is contained in:
parent
ccd42a9dfb
commit
42afb3683f
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =
|
||||||
|
|
||||||
const filterItems = (items: any[]) => {
|
const filterItems = (items: any[]) => {
|
||||||
return items.filter(
|
return items.filter(
|
||||||
item => item != null && resultTypes.includes(item.type) && (excludeIds != null && !excludeIds.includes(item.record.id))
|
item => item != null && resultTypes.includes(item.type) && !exclude IDs?.includes(item.record.id)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue