File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4157,7 +4157,7 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
41574157 updateDataStateToChartInstance ( activeChartInstance ?: any ) : void {
41584158 if (
41594159 activeChartInstance ?. getSpec ( ) . select ?. enable !== false ||
4160- activeChartInstance ?. getSpec ( ) . interactions . find ( ( interaction : any ) => interaction . type === 'element-select' )
4160+ activeChartInstance ?. getSpec ( ) . interactions ? .find ( ( interaction : any ) => interaction . type === 'element-select' )
41614161 ) {
41624162 if ( ! activeChartInstance ) {
41634163 activeChartInstance = ( this . _table as PivotChart ) . _getActiveChartInstance ( ) ;
@@ -4167,7 +4167,7 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
41674167 const chartInstance = _indicatorObject . chartInstance ;
41684168 if (
41694169 _indicatorObject . chartSpec . select ?. enable !== false ||
4170- _indicatorObject . chartSpec . interactions . find ( ( interaction : any ) => interaction . type === 'element-select' )
4170+ _indicatorObject . chartSpec . interactions ? .find ( ( interaction : any ) => interaction . type === 'element-select' )
41714171 ) {
41724172 chartInstance . updateState ( state ) ;
41734173 }
@@ -4178,7 +4178,7 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
41784178 updateDataStateToActiveChartInstance ( activeChartInstance ?: any ) : void {
41794179 if (
41804180 activeChartInstance ?. getSpec ( ) . select ?. enable !== false ||
4181- activeChartInstance ?. getSpec ( ) . interactions . find ( ( interaction : any ) => interaction . type === 'element-select' )
4181+ activeChartInstance ?. getSpec ( ) . interactions ? .find ( ( interaction : any ) => interaction . type === 'element-select' )
41824182 ) {
41834183 if ( ! activeChartInstance ) {
41844184 activeChartInstance = ( this . _table as PivotChart ) . _getActiveChartInstance ( ) ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class Chart extends Rect {
240240 this . activeChartInstance . on ( 'click' , ( params : any ) => {
241241 if ( this . attribute . spec . select ?. enable === false ) {
242242 if (
243- this . attribute . spec . interactions . find (
243+ this . attribute . spec . interactions ? .find (
244244 ( interaction : any ) => interaction . type === 'element-select' && interaction . isMultiple
245245 )
246246 ) {
You can’t perform that action at this time.
0 commit comments