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 {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
}else {
this.setState({ errorReportName: true, msgErrorReportName: 'Report Cannot be Empty' })
this.createParameter()
}
}else{
if (R.isNil(this.state.endDate)){
......@@ -14534,7 +14535,6 @@ export default class CreateParameter extends Component {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
this.validasiMaxResponse()
}else {
this.createParameter()
this.validasiMaxResponse()
}
}
......@@ -14594,7 +14594,6 @@ export default class CreateParameter extends Component {
this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
this.validasiMinResponse()
}else {
this.createParameter()
this.validasiMinResponse()
}
}else{
......@@ -14603,7 +14602,6 @@ export default class CreateParameter extends Component {
this.validasiMaxResponse()
this.validasiMinResponse()
}else {
this.createParameter()
this.validasiMaxResponse()
this.validasiMinResponse()
}
......@@ -15354,7 +15352,7 @@ export default class CreateParameter extends Component {
<div className="column-2" style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}>
<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' }}>
<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