Commit 97303fc5 authored by Riri Novita's avatar Riri Novita

Anomali CAT

parent 2057d0fc
...@@ -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