Commit 42638539 authored by fahrur huzain's avatar fahrur huzain

update validasi terbaru

parent fded60b4
...@@ -13810,6 +13810,7 @@ export default class CreateParameter extends Component { ...@@ -13810,6 +13810,7 @@ export default class CreateParameter extends Component {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' }) this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
}else { }else {
this.setState({ errorReportName: true, msgErrorReportName: 'Report Cannot be Empty' }) this.setState({ errorReportName: true, msgErrorReportName: 'Report Cannot be Empty' })
this.createParameter()
} }
}else{ }else{
if (R.isNil(this.state.endDate)){ if (R.isNil(this.state.endDate)){
...@@ -14534,7 +14535,6 @@ export default class CreateParameter extends Component { ...@@ -14534,7 +14535,6 @@ export default class CreateParameter extends Component {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' }) this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
this.validasiMaxResponse() this.validasiMaxResponse()
}else { }else {
this.createParameter()
this.validasiMaxResponse() this.validasiMaxResponse()
} }
} }
...@@ -14594,7 +14594,6 @@ export default class CreateParameter extends Component { ...@@ -14594,7 +14594,6 @@ export default class CreateParameter extends Component {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' }) this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
this.validasiMinResponse() this.validasiMinResponse()
}else { }else {
this.createParameter()
this.validasiMinResponse() this.validasiMinResponse()
} }
}else{ }else{
...@@ -14603,7 +14602,6 @@ export default class CreateParameter extends Component { ...@@ -14603,7 +14602,6 @@ export default class CreateParameter extends Component {
this.validasiMaxResponse() this.validasiMaxResponse()
this.validasiMinResponse() this.validasiMinResponse()
}else { }else {
this.createParameter()
this.validasiMaxResponse() this.validasiMaxResponse()
this.validasiMinResponse() this.validasiMinResponse()
} }
...@@ -15354,7 +15352,7 @@ export default class CreateParameter extends Component { ...@@ -15354,7 +15352,7 @@ export default class CreateParameter extends Component {
<div className="column-2" style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}> <div className="column-2" style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}>
<button <button
type="button" type="button"
onClick={() => this.validasiCreate()} onClick={() => this.validasi()}
> >
<div style={{ width: 102, height: 30, backgroundColor: '#354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}> <div style={{ width: 102, height: 30, backgroundColor: '#354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
<span style={{ color: '#fff', fontSize: 11 }}>Save</span> <span style={{ color: '#fff', fontSize: 11 }}>Save</span>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment