Skip to content

Commit

Permalink
fix(deployment-settings): fix check for edits, remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Jul 18, 2017
1 parent 6d8d3be commit 45f483d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/manager/components/DeploymentSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ export default class DeploymentSettings extends Component {
}

render () {
console.log(this.state)
const updaters = objectPath.get(this.state, 'routerConfig.updaters') || []
const messages = getComponentMessages('ProjectSettings')
const {project, editDisabled} = this.props
const noEdits = shallowEqual(this.state.routerConfig, project.routerConfig) &&
shallowEqual(this.state.buildConfig, project.buildConfig) &&
shallowEqual(this.state.otpServers, project.otpServers)
const noEdits = Object.keys(this.state)
.map(key => shallowEqual(this.state[key], project[key]))
.indexOf(false) === -1
return (
<div className='deployment-settings-panel'>
{/* Build config settings */}
Expand Down

0 comments on commit 45f483d

Please sign in to comment.