Commit a3e15205 authored by Riri Novita's avatar Riri Novita

bug

parent 544ddae8
...@@ -111,7 +111,7 @@ class HomePage extends Component { ...@@ -111,7 +111,7 @@ class HomePage extends Component {
api.create().getMonthTransaction().then(response => { api.create().getMonthTransaction().then(response => {
let dateNow = new Date let dateNow = new Date
let month = format(dateNow, 'MMMM') let month = format(dateNow, 'MMMM')
// console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
// console.log(response); // console.log(response);
...@@ -126,7 +126,7 @@ class HomePage extends Component { ...@@ -126,7 +126,7 @@ class HomePage extends Component {
options: monthData, options: monthData,
getOptionLabel: (option) => option.month_value, getOptionLabel: (option) => option.month_value,
}; };
let index = data.sort((a, b) => a - b).findIndex((val) => val.month_name == month) let index = data.findIndex((val) => val.month_name == month)
// console.log(month) // console.log(month)
// console.log(index) // console.log(index)
this.setState({ listMonth: defaultProps, month: index == -1 ? monthData[0] : monthData[index] }, () => { this.setState({ listMonth: defaultProps, month: index == -1 ? monthData[0] : monthData[index] }, () => {
......
...@@ -309,7 +309,7 @@ export default class MonthlyReport extends Component { ...@@ -309,7 +309,7 @@ export default class MonthlyReport extends Component {
options: monthData, options: monthData,
getOptionLabel: (option) => option.month_value, getOptionLabel: (option) => option.month_value,
}; };
let index = data.sort((a, b) => a - b).findIndex((val) => val.month_name == month) let index = data.findIndex((val) => val.month_name == month)
console.log(index); console.log(index);
this.setState({ listMonth: defaultProps, month: index == -1 ? monthData[0] : monthData[index] }, () => { this.setState({ listMonth: defaultProps, month: index == -1 ? monthData[0] : monthData[index] }, () => {
// if (this.state.isApprover === true) { // if (this.state.isApprover === true) {
......
...@@ -2245,7 +2245,7 @@ export default class BalanceSheetMR extends Component { ...@@ -2245,7 +2245,7 @@ export default class BalanceSheetMR extends Component {
<LightTooltip title={"MTD Explanation vs MB is Reqiured"} arrow> <LightTooltip title={"MTD Explanation vs MB is Reqiured"} arrow>
<Input <Input
disableUnderline={true} disableUnderline={true}
style={{ fontSize: 12, textAlign: 'left', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'left', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', minHeight: 30, padding: 0 }}
type="text" type="text"
placeholder="" placeholder=""
multiline={true} multiline={true}
...@@ -2256,7 +2256,9 @@ export default class BalanceSheetMR extends Component { ...@@ -2256,7 +2256,9 @@ export default class BalanceSheetMR extends Component {
style: { style: {
color: "#5198ea", color: "#5198ea",
textAlign: 'left', textAlign: 'left',
backgroundColor: '#ffac99' backgroundColor: '#ffac99',
minHeight: 30,
padding: 0
} }
}} }}
onBlur={(event) => { onBlur={(event) => {
......
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