Fix return type

Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com>
This commit is contained in:
Elvyra 2025-02-05 20:54:01 +01:00 committed by GitHub
parent 36c81714ff
commit 25a1fd1376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};