Commit 544ddae8 authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'didam' into 'master'

apdet

See merge request !989
parents dc262576 e72137e9
......@@ -688,6 +688,9 @@ export default class MonthlyReport extends Component {
}
clickDetail(item, id, revision, status) {
console.log(this.state.dataForRevision)
console.log(item)
console.log(revision)
console.log(item)
let items = ''
if (item === 'Corporate Annual Target') {
......@@ -697,7 +700,7 @@ export default class MonthlyReport extends Component {
}
this.state.dataForRevision.map(i => {
if (i.report_name === items) {
if (i.revision !== revision) {
if (i.revision == revision) {
this.setState({ prevRevision: true })
} else {
this.setState({ prevRevision: false })
......@@ -710,6 +713,7 @@ export default class MonthlyReport extends Component {
status: status
}, () => {
console.log(status)
console.log(this.state.prevRevision)
if (item === 'Balance Sheet') {
this.setState({
visibleMonthlyReport: false,
......
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