fix(ui): replace redux code
This commit is contained in:
parent
ae69eebb1d
commit
db9fe8c72a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue