From db9fe8c72a47d593831e2cd7cce9d262b3ecfebf Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 8 Nov 2024 16:45:58 +0100 Subject: [PATCH] fix(ui): replace redux code --- frontend/app/components/shared/SharePopup/SharePopup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/SharePopup/SharePopup.tsx b/frontend/app/components/shared/SharePopup/SharePopup.tsx index 3e95f92b7..a2a9c64a9 100644 --- a/frontend/app/components/shared/SharePopup/SharePopup.tsx +++ b/frontend/app/components/shared/SharePopup/SharePopup.tsx @@ -71,9 +71,9 @@ function ShareModalComp({ const [shareTo, setShareTo] = useState('slack'); const [comment, setComment] = useState(''); // @ts-ignore - const [channelId, setChannelId] = useState(channels.getIn([0, 'webhookId'])); + const [channelId, setChannelId] = useState(channels[0]?.webhookId); // @ts-ignore - const [teamsChannel, setTeamsChannel] = useState(msTeamsChannels.getIn([0, 'webhookId'])); + const [teamsChannel, setTeamsChannel] = useState(msTeamsChannels[0]?.webhookId); const [loadingSlack, setLoadingSlack] = useState(false); const [loadingTeams, setLoadingTeams] = useState(false);