DOn't use includes to make IE happy and avoid Polyfill
This commit is contained in:
parent
cd92d87821
commit
236e0bfd99
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ export const formatDateLabels = (function() {
|
|||
});
|
||||
return {
|
||||
label: label,
|
||||
type: component.includes('yy') ? 'year' : 'month'
|
||||
type: component.indexOf('yy') != -1 ? 'year' : 'month'
|
||||
};
|
||||
});
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue