From a0c0cfaa1a40e4c31ae44f7db7e9bf980ffdc3ec Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 20 May 2021 23:58:23 +0530 Subject: [PATCH] fix: slack share channel selection --- frontend/app/components/shared/SharePopup/SharePopup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SharePopup/SharePopup.js b/frontend/app/components/shared/SharePopup/SharePopup.js index adf3b5af7..347a95733 100644 --- a/frontend/app/components/shared/SharePopup/SharePopup.js +++ b/frontend/app/components/shared/SharePopup/SharePopup.js @@ -19,7 +19,7 @@ export default class SharePopup extends React.PureComponent { state = { comment: '', isOpen: false, - channelId: this.props.channels.getIn([ 0, 'id' ]), + channelId: this.props.channels.getIn([ 0, 'webhookId' ]), } editMessage = e => this.setState({ comment: e.target.value }) @@ -46,10 +46,10 @@ export default class SharePopup extends React.PureComponent { changeChannel = (e, { value }) => this.setState({ channelId: value }) render() { - const { trigger, loading, channels, tenantId } = this.props; + const { trigger, loading, channels } = this.props; const { comment, isOpen, channelId } = this.state; - const options = channels.map(({ id, name }) => ({ value: id, text: name })).toJS(); + const options = channels.map(({ webhookId, name }) => ({ value: webhookId, text: name })).toJS(); return (