Commit 10db258f authored by qorri_di's avatar qorri_di

Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'

Env dev

See merge request !1769
parents ff61da50 9101378a
...@@ -4218,7 +4218,7 @@ export default class SubHolding extends Component { ...@@ -4218,7 +4218,7 @@ export default class SubHolding extends Component {
// console.log(yearNow) // console.log(yearNow)
// console.log(periode) // console.log(periode)
if (String(this.state.report.label).toLocaleLowerCase().includes('summary')) { if (String(this.state.report.label).toLocaleLowerCase().includes('summary')) {
let index = data.sort((a, b) => a - b).findIndex((val) => val.periode == yearNow) let index = data.sort((a, b) => a - b).findIndex((val) => val.periode == yearNow - 1)
// console.log(index) // console.log(index)
this.setState({ periode: data[index] }, () => { this.setState({ periode: data[index] }, () => {
this.getReportType() this.getReportType()
......
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