Commit 4e030448 authored by faisalhamdi's avatar faisalhamdi

!refresh again

parent 91fab299
...@@ -297,7 +297,7 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -297,7 +297,7 @@ export default class FixedAssetsMovementMR extends Component {
console.log(response) console.log(response)
if (response.data) { if (response.data) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false }) this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false, refresh: true })
let dataTable = response.data.data.map((item, index) => { let dataTable = response.data.data.map((item, index) => {
return [ return [
item.type_report_id, item.type_report_id,
...@@ -319,7 +319,7 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -319,7 +319,7 @@ export default class FixedAssetsMovementMR extends Component {
] ]
}) })
// console.log(dataTable) // console.log(dataTable)
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => { this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true, refresh: false }, () => {
this.state.dataTable.map(item => { this.state.dataTable.map(item => {
if (item[15].length > 0) { if (item[15].length > 0) {
console.log('masuk') console.log('masuk')
......
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