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