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 {
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 */ }
You can’t perform that action at this time.
0 commit comments