mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
Fix return type
Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com>
This commit is contained in:
parent
36c81714ff
commit
25a1fd1376
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =
|
|||
|
||||
const channelLabel = getChannelLabel(channel, UserStore, RelationshipStore, false);
|
||||
|
||||
const parentChannelLabel = (): string => {
|
||||
const parentChannelLabel = (): string | null => {
|
||||
const parentChannel = ChannelStore.getChannel(channel.parent_id);
|
||||
return parentChannel ? getChannelLabel(parentChannel, UserStore, RelationshipStore, false) : null;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue