mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
fix silly crash
Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com>
This commit is contained in:
parent
6156828d40
commit
2018337781
1 changed files with 13 additions and 10 deletions
|
@ -440,7 +440,10 @@ export default ErrorBoundary.wrap(function SearchModal({ modalProps, onSubmit, i
|
|||
return clean;
|
||||
};
|
||||
|
||||
const guilds: GuildResult[] = useStateFromStores([GuildStore], () => Object.values(GuildStore.getGuilds()).map(
|
||||
let guilds: GuildResult[] = [];
|
||||
|
||||
if (resultTypes.includes("GUILD"))
|
||||
guilds = Object.values(GuildStore.getGuilds()).map(
|
||||
guild => {
|
||||
return {
|
||||
type: TextTypes.GUILD,
|
||||
|
@ -449,7 +452,7 @@ export default ErrorBoundary.wrap(function SearchModal({ modalProps, onSubmit, i
|
|||
comparator: guild.name
|
||||
};
|
||||
}
|
||||
));
|
||||
);
|
||||
|
||||
const { results, hasQuery, frequentChannels, channelHistory } = props;
|
||||
if (hasQuery) return filterItems(results);
|
||||
|
|
Loading…
Add table
Reference in a new issue