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,16 +440,19 @@ export default ErrorBoundary.wrap(function SearchModal({ modalProps, onSubmit, i
|
||||||
return clean;
|
return clean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const guilds: GuildResult[] = useStateFromStores([GuildStore], () => Object.values(GuildStore.getGuilds()).map(
|
let guilds: GuildResult[] = [];
|
||||||
guild => {
|
|
||||||
return {
|
if (resultTypes.includes("GUILD"))
|
||||||
type: TextTypes.GUILD,
|
guilds = Object.values(GuildStore.getGuilds()).map(
|
||||||
record: guild,
|
guild => {
|
||||||
score: 0,
|
return {
|
||||||
comparator: guild.name
|
type: TextTypes.GUILD,
|
||||||
};
|
record: guild,
|
||||||
}
|
score: 0,
|
||||||
));
|
comparator: guild.name
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const { results, hasQuery, frequentChannels, channelHistory } = props;
|
const { results, hasQuery, frequentChannels, channelHistory } = props;
|
||||||
if (hasQuery) return filterItems(results);
|
if (hasQuery) return filterItems(results);
|
||||||
|
|
Loading…
Add table
Reference in a new issue