From 25a1fd13760f9b9cc6084c982eaaf9f188e5ed27 Mon Sep 17 00:00:00 2001 From: Elvyra <88881326+EepyElvyra@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:54:01 +0100 Subject: [PATCH] Fix return type Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com> --- src/components/SearchModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; };