Commit 1fc4e482 authored by Riri Novita's avatar Riri Novita

locf

parent 2b3c5ad7
...@@ -1004,22 +1004,22 @@ export default class ListOfCreditFacilities extends Component { ...@@ -1004,22 +1004,22 @@ export default class ListOfCreditFacilities extends Component {
} }
this.setState({ loading: true, dataTable: [] }) this.setState({ loading: true, dataTable: [] })
console.log(body) console.log(body)
// api.create().uploadSimulasiMRLOCF(body).then(response => { api.create().uploadSimulasiMRLOCF(body).then(response => {
// console.log(response) console.log(response)
// if (response.data) { if (response.data) {
// if (response.ok) { if (response.ok) {
// if (response.data.status === "success") { if (response.data.status === "success") {
// this.props.saveToMonthlyReport('LOCF', "simulasiLOCF") this.props.saveToMonthlyReport('LOCF', "simulasiLOCF")
// } else { } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false }) this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
// } }
// } else { } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false }) this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
// } }
// } else { } else {
// this.setState({ alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error', loading: false }) this.setState({ alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error', loading: false })
// } }
// }) })
} }
uploadLOCF(type) { uploadLOCF(type) {
......
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