Commit b50d1837 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'riri' into 'master'

push

See merge request !409
parents 1f2e610b 00ced0d7
......@@ -91,6 +91,7 @@ export default class ProfitLoss extends Component {
api.create().getDetailReportMB(payload).then(response => {
console.log(response);
let dataTable = []
this.setState({visibleProfitLoss: true})
if (response.data) {
let res = response.data.data
const handlePushChild = (item) => {
......@@ -166,6 +167,7 @@ export default class ProfitLoss extends Component {
}
}
})
console.log(dataTable)
this.setState({ dataTable, loading: false, buttonError: true, editable: true })
} else {
this.setState({ dataTable, loading: false, buttonError: true, editable: true })
......@@ -2257,7 +2259,7 @@ export default class ProfitLoss extends Component {
<div className="col-1">
<button
type="button"
onClick={() => this.setState({ loading: true, visibleProfitLoss: true }, () => {
onClick={() => this.setState({ loading: true, dataTable:[] }, () => {
setTimeout(() => {
this.getItemHierarki()
}, 100);
......
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