Skip to content
Permalink
Browse files

fix(channels): ensure csv_delay property is defined before returning it

fix #2692
  • Loading branch information...
bolatovumar committed Aug 7, 2019
1 parent f1e4d94 commit c3d3416edc84dc534ce613dcb4016d68db14fc53
Showing with 1 addition and 1 deletion.
  1. +1 −1 renderer/containers/Channels/ChannelCloseDialog.js
@@ -11,7 +11,7 @@ const isForceCloseDialog = state => {

const csvDelay = state => {
const selectedChannel = channelsSelectors.selectedChannel(state)
return selectedChannel ? selectedChannel.csv_delay : 0
return selectedChannel && selectedChannel.csv_delay ? selectedChannel.csv_delay : 0
}

const mapStateToProps = state => {

0 comments on commit c3d3416

Please sign in to comment.
You can’t perform that action at this time.