File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const getCalculatedValues = (props) => {
64
64
65
65
// when inside a zoom container, reset the _x and _y properties of each datum to the original
66
66
// x and y property values so they will not be clipped. See https://github.com/FormidableLabs/victory/pull/2970
67
- if ( props . groupComponent . type === VictoryClipContainer ) {
67
+ if ( props . groupComponent ? .type === VictoryClipContainer ) {
68
68
data = data . map ( ( datum ) => ( { ...datum , _x : datum . x , _y : datum . y } ) ) ;
69
69
}
70
70
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class VictoryBarBase extends React.Component<VictoryBarProps> {
148
148
// when inside a zoom container (the only place VictoryClipContainer is used), all data
149
149
// should be renderable so bars won't dissappear before they've fully exited the container's bounds
150
150
// see https://github.com/FormidableLabs/victory/pull/2970
151
- if ( props . groupComponent . type === VictoryClipContainer ) {
151
+ if ( props . groupComponent ? .type === VictoryClipContainer ) {
152
152
children = this . renderData ( props , VictoryBarBase . shouldRenderDatum ) ;
153
153
} else {
154
154
children = this . renderData ( props ) ;
You can’t perform that action at this time.
0 commit comments