fix calendar month range display (#14049)

This commit is contained in:
meihuanyu 2019-01-03 08:06:40 -06:00 committed by zombieJ
parent a46f027b0c
commit f092d5a32e

View File

@ -83,7 +83,8 @@ export default class Header extends React.Component<HeaderProps, any> {
const currentYear = value.get('year'); const currentYear = value.get('year');
if (rangeEnd.get('year') === currentYear) { if (rangeEnd.get('year') === currentYear) {
end = rangeEnd.get('month') + 1; end = rangeEnd.get('month') + 1;
} else if (rangeStart.get('year') === currentYear) { }
if (rangeStart.get('year') === currentYear) {
start = rangeStart.get('month'); start = rangeStart.get('month');
} }
} }