Skip to content

Commit 45f483d

Browse files
committed
fix(deployment-settings): fix check for edits, remove console.log
1 parent 6d8d3be commit 45f483d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/manager/components/DeploymentSettings.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,12 @@ export default class DeploymentSettings extends Component {
144144
}
145145

146146
render () {
147-
console.log(this.state)
148147
const updaters = objectPath.get(this.state, 'routerConfig.updaters') || []
149148
const messages = getComponentMessages('ProjectSettings')
150149
const {project, editDisabled} = this.props
151-
const noEdits = shallowEqual(this.state.routerConfig, project.routerConfig) &&
152-
shallowEqual(this.state.buildConfig, project.buildConfig) &&
153-
shallowEqual(this.state.otpServers, project.otpServers)
150+
const noEdits = Object.keys(this.state)
151+
.map(key => shallowEqual(this.state[key], project[key]))
152+
.indexOf(false) === -1
154153
return (
155154
<div className='deployment-settings-panel'>
156155
{/* Build config settings */}

0 commit comments

Comments
 (0)