Commit 00ced0d7 authored by EKSAD's avatar EKSAD

push

parent 005ff046
......@@ -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