Commit f34ac53b authored by fahrur huzain's avatar fahrur huzain

update issue parameter edit

parent bc121a76
......@@ -728,7 +728,7 @@ export default class CreateParameter extends Component {
}
async validasiCreateEdit(){
console.log("Masuk ke validasiCreateEdit")
// console.log("Masuk ke validasiCreateEdit")
let data = await this.validasiValueData()
if (this.props.type === "edit"){
if (R.isNil(this.state.getTypes)){
......@@ -747,7 +747,6 @@ export default class CreateParameter extends Component {
this.updateParameter()
}
} else if (this.state.getTypes.setting_group_name == "REPORT_SUBMIT_PERIOD") {
console.log("masuk creat : " + data.maxValue);
if (R.isEmpty(data.maxValue) || data.maxValue == "" ) {
} else {
this.updateParameter()
......@@ -773,7 +772,6 @@ export default class CreateParameter extends Component {
this.createParameter()
}
} else if (this.state.getTypes.setting_group_name == "REPORT_SUBMIT_PERIOD") {
console.log("masuk creat : " + data.maxValue);
if (R.isEmpty(data.maxValue) || data.maxValue == "" ) {
} else {
this.createParameter()
......@@ -938,22 +936,22 @@ export default class CreateParameter extends Component {
}
async validasiCreate() {
console.log(this.state.getFormatData);
console.log(this.state.tempData);
console.log(this.state.getTypes);
console.log(this.state.getParameter);
console.log(this.state.getPerusahaan);
console.log(this.state.getReportName);
console.log(this.state.value);
console.log(this.state.minValue);
console.log(this.state.startDate);
console.log(this.state.maxValue);
console.log(this.state.maxValue.substring(0,1));
// console.log(this.state.getFormatData);
// console.log(this.state.tempData);
// console.log(this.state.getTypes);
// console.log(this.state.getParameter);
// console.log(this.state.getPerusahaan);
// console.log(this.state.getReportName);
// console.log(this.state.value);
// console.log(this.state.minValue);
// console.log(this.state.startDate);
// console.log(this.state.maxValue);
// console.log(this.state.maxValue.substring(0,1));
let minMaxValidasi = await this.validasiMinMaxValue()
let data = await this.validasiValueData()
let response = await this.validasiRegexValue()
console.log(data);
console.log(data.endDate)
// console.log(data);
// console.log(data.endDate)
if (R.isNil(this.state.getTypes)) {
this.setState({ errorGroup: true, msgErrorGroup: 'Group Cannot be Empty' })
if(R.isNil(this.state.getParameter)){
......
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