Commit 86dd47fd authored by syadziy's avatar syadziy

update issue periode OLPA

parent e345e36f
......@@ -443,7 +443,7 @@ export default class OutlookPA extends Component {
options: periodeData,
getOptionLabel: (option) => option.periode,
};
let periode = (this.state.lastPeriod == "" ? String(Number(currentYear)) : this.state.lastPeriodProps == undefined ? Number(this.state.lastPeriod) : this.state.lastPeriodProps)
let periode = (this.state.lastPeriodProps == undefined ? (this.state.lastPeriod == "" ? String(Number(currentYear)) : Number(this.state.lastPeriod)) : this.state.lastPeriodProps)
let index = data.sort((a, b) => a - b).findIndex((val) => val == periode)
// console.log(data)
// console.log(this.state.lastPeriod)
......
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