Commit 11224f29 authored by r.kurnia's avatar r.kurnia

hapus ketinggalan

parent 287a84ec
......@@ -52,8 +52,7 @@ export default class TaxPlanningMR extends Component {
buttonDraft: true,
handleTekTekTek: 0,
saveDraft: true,
buttonError: true,
shouldBeNil: true
buttonError: true
}
this.fileHandler = this.fileHandler.bind(this);
......@@ -185,7 +184,7 @@ export default class TaxPlanningMR extends Component {
}
}
})
this.setState({ dataTable, loading: false, editable: true, shouldBeNil: false })
this.setState({ dataTable, loading: false, editable: true })
} else {
this.setState({ loading: false, alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
if (response.data.message.includes("Someone Logged In")) {
......@@ -1612,16 +1611,15 @@ export default class TaxPlanningMR extends Component {
this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
:
this.state.handleTekTekTek == 1 ? null :
this.state.shouldBeNil === true ? null :
this.setState({ handleTekTekTek: 1, loading: true }, () => {
setTimeout(() => {
this.backToMonthlyReport('submitted')
}, 100);
})
this.setState({ handleTekTekTek: 1, loading: true }, () => {
setTimeout(() => {
this.backToMonthlyReport('submitted')
}, 100);
})
}
style={{
backgroundColor: 'transparent',
cursor: (this.state.buttonError === true) || (this.state.shouldBeNil === true) ? 'default' : 'pointer',
cursor: this.state.buttonError === true ? 'default' : 'pointer',
borderColor: 'transparent',
outline: 'none'
}}
......
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