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

hapus ketinggalan

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