Skip to content

Commit

Permalink
fix: showMessageBoxSync parsed a null to an optional argument. Now re…
Browse files Browse the repository at this point in the history
…moved
  • Loading branch information
olzzon committed Oct 9, 2019
1 parent 8891e3f commit 3f4561f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ChannelRouteSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class ChannelRouteSettings extends React.PureComponent<IChannelProps & IChannelS
title: 'Unlock Channel',
message: 'Unbind Channel ' + String(channel + 1) + ' from Fader ' + String(this.faderIndex + 1),
};
let response = dialog.showMessageBoxSync(null, options)

let response = dialog.showMessageBoxSync(options)
if (response === 1) {
return true
}
Expand All @@ -67,7 +66,7 @@ class ChannelRouteSettings extends React.PureComponent<IChannelProps & IChannelS
message: 'Bind Channel ' + String(channel + 1) + ' to Fader ' + String(this.faderIndex + 1) + '?',
detail: detail,
};
let response = dialog.showMessageBoxSync(null, options)
let response = dialog.showMessageBoxSync(options)

if (response === 1) {
return true
Expand Down

0 comments on commit 3f4561f

Please sign in to comment.