File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -144,13 +144,12 @@ export default class DeploymentSettings extends Component {
144
144
}
145
145
146
146
render ( ) {
147
- console . log ( this . state )
148
147
const updaters = objectPath . get ( this . state , 'routerConfig.updaters' ) || [ ]
149
148
const messages = getComponentMessages ( 'ProjectSettings' )
150
149
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
154
153
return (
155
154
< div className = 'deployment-settings-panel' >
156
155
{ /* Build config settings */ }
You can’t perform that action at this time.
0 commit comments