@@ -473,23 +473,23 @@ export class Chart extends Rect {
473473 const { col, row } = this . parent ;
474474 // 隐藏左侧纵向crosshair的labelHoverOnAxis
475475 table . internalProps . layoutMap . isAxisCell ( table . rowHeaderLevelCount - 1 , row ) &&
476- table . scenegraph . getCell ( table . rowHeaderLevelCount - 1 , row ) . firstChild . hideLabelHoverOnAxis ?.( ) ;
476+ table . scenegraph . getCell ( table . rowHeaderLevelCount - 1 , row ) . firstChild ? .hideLabelHoverOnAxis ?.( ) ;
477477 // 隐藏底部横向crosshair的labelHoverOnAxis
478478 table . internalProps . layoutMap . isAxisCell ( col , table . rowCount - table . bottomFrozenRowCount ) &&
479- table . scenegraph . getCell ( col , table . rowCount - table . bottomFrozenRowCount ) . firstChild . hideLabelHoverOnAxis ?.( ) ;
479+ table . scenegraph . getCell ( col , table . rowCount - table . bottomFrozenRowCount ) . firstChild ? .hideLabelHoverOnAxis ?.( ) ;
480480 } else {
481481 const { col, row } = this . parent ;
482482 if ( releaseColumnChartInstance ) {
483483 // 隐藏底部横向crosshair的labelHoverOnAxis
484484 table . internalProps . layoutMap . isAxisCell ( col , table . rowCount - table . bottomFrozenRowCount ) &&
485485 table . scenegraph
486486 . getCell ( col , table . rowCount - table . bottomFrozenRowCount )
487- . firstChild . hideLabelHoverOnAxis ?.( ) ;
487+ . firstChild ? .hideLabelHoverOnAxis ?.( ) ;
488488 }
489489 if ( releaseRowChartInstance ) {
490490 // 隐藏左侧纵向crosshair的labelHoverOnAxis
491491 table . internalProps . layoutMap . isAxisCell ( table . rowHeaderLevelCount - 1 , row ) &&
492- table . scenegraph . getCell ( table . rowHeaderLevelCount - 1 , row ) . firstChild . hideLabelHoverOnAxis ?.( ) ;
492+ table . scenegraph . getCell ( table . rowHeaderLevelCount - 1 , row ) . firstChild ? .hideLabelHoverOnAxis ?.( ) ;
493493 }
494494 }
495495 if ( releaseColumnChartInstance ) {
0 commit comments