Commit 7a500a9a authored by Faisal Hamdi's avatar Faisal Hamdi

Merge branch 'faisal' into 'master'

!refresh again

See merge request !963
parents 91fab299 4e030448
...@@ -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