Commit cace6b4c authored by Faisal Hamdi's avatar Faisal Hamdi

Merge branch 'faisal' into 'master'

!last try

See merge request !965
parents 36c25582 e396b2f7
......@@ -297,6 +297,7 @@ export default class FixedAssetsMovementMR extends Component {
console.log(response)
if (response.data) {
if (response.data.status === 'success') {
this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false, refresh: true })
let dataTable = response.data.data.map((item, index) => {
return [
item.type_report_id,
......@@ -317,13 +318,15 @@ export default class FixedAssetsMovementMR extends Component {
item.error
]
})
this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false, refresh: true })
// console.log(dataTable)
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true, refresh: false }, () => {
this.state.dataTable.map(item => {
if (item[15].length > 0) {
console.log('masuk')
this.setState({ buttonError: true, errorPreview: true, editable: true })
this.setState({ buttonError: true, errorPreview: true, editable: true, loading: true, refresh: true })
setTimeout(() => {
this.setState({ loading: false, refresh: false })
}, 200);
}
})
// console.log(this.state.dataTable);
......
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