Commit 2abf320c authored by ardiansyah's avatar ardiansyah

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

Fix blank page olpa

See merge request !2433
parents c4427a09 13923bd8
......@@ -663,7 +663,8 @@ export default class CorporateAnnualTargetRO extends Component {
}
if (String(i[5]) == 'revenue'){
console.log(String(Number(i[22]?.formula[1].value)/1000))
const value = i[22]?.formula?.[1]?.value;
console.log(String(Number(value ?? 0) / 1000));
}
// if (this.state.defaultCurrencyUpload?.id == 2) {
data.push({
......
......@@ -316,7 +316,7 @@ export default class OutlookPA extends Component {
// console.log(response)
if (response.data) {
if (response.data.status === "success") {
this.setState({ listAttachment: response.data.data })
this.setState({ [master_report_type_id === 2 ? 'listAttachmentCAT' : 'listAttachment']: response.data.data })
}
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
......
......@@ -340,7 +340,7 @@ export default class RollingOutlook extends Component {
console.log(response)
if (response.data) {
if (response.data.status === "success") {
this.setState({ listAttachment: response.data.data })
this.setState({ [master_report_type_id === 2 ? 'listAttachmentCAT' : 'listAttachment']: response.data.data })
}
}
// console.log(response);
......
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