diff --git a/src/components/SearchModal.tsx b/src/components/SearchModal.tsx index 5aa66c1ae..28bcb91e8 100644 --- a/src/components/SearchModal.tsx +++ b/src/components/SearchModal.tsx @@ -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; };