Commit 784981d2 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

Anomali CAT

See merge request !1877
parents e2f082a5 24d3581e
...@@ -628,7 +628,7 @@ export default class BudgetTahunan extends Component { ...@@ -628,7 +628,7 @@ export default class BudgetTahunan extends Component {
console.log(response) console.log(response)
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
if (type === "CAT") { if (type === "CAT" || type === "DraftCAT") {
this.setState({ visibleCAT: false, visibleBudgetTahunan: true, loading: false }) this.setState({ visibleCAT: false, visibleBudgetTahunan: true, loading: false })
} else { } else {
this.setState({ visibleBudgetTahunan: true, loading: false }) this.setState({ visibleBudgetTahunan: true, loading: false })
......
...@@ -825,10 +825,10 @@ export default class CorporateAnnualTarget extends Component { ...@@ -825,10 +825,10 @@ export default class CorporateAnnualTarget extends Component {
if (type == 'submitted') { if (type == 'submitted') {
this.props.getReport(body, 'CAT') this.props.getReport(body, 'CAT')
} else { } else {
this.props.getReport(body) this.props.getReport(body, 'DraftCAT')
} }
this.setState({ loading: false }) this.setState({ loading: false })
// this.props.onClickClose() this.props.onClickClose()
// this.props.getReport() // this.props.getReport()
} else { } else {
if (response.data?.message == "Please Set Up Rate Currency First") { if (response.data?.message == "Please Set Up Rate Currency First") {
......
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