File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ module.exports = function(Chart) {
662662
663663 // Since we always show the last tick,we need may need to hide the last shown one before
664664 shouldSkip = ( skipRatio > 1 && i % skipRatio > 0 ) || ( i % skipRatio === 0 && i + skipRatio >= tickCount ) ;
665- if ( shouldSkip && i !== tickCount - 1 || helpers . isNullOrUndef ( tick . label ) ) {
665+ if ( shouldSkip && i !== tickCount - 1 ) {
666666 // leave tick in place but make sure it's not displayed (#4635)
667667 delete tick . label ;
668668 }
@@ -712,7 +712,7 @@ module.exports = function(Chart) {
712712
713713 helpers . each ( ticks , function ( tick , index ) {
714714 // autoskipper skipped this tick (#4635)
715- if ( tick . label === undefined ) {
715+ if ( helpers . isNullOrUndef ( tick . label ) ) {
716716 return ;
717717 }
718718
You can’t perform that action at this time.
0 commit comments