@@ -19,6 +19,7 @@ export const AxisAnchorDropdown = connectToContainer(UnconnectedDropdown, {
1919 let options = [ ] ;
2020
2121 if (
22+ plotProps . fullContainer &&
2223 plotProps . fullContainer . _subplot &&
2324 plotProps . fullContainer . _subplot . includes ( 'xaxis' )
2425 ) {
@@ -29,6 +30,7 @@ export const AxisAnchorDropdown = connectToContainer(UnconnectedDropdown, {
2930 } ;
3031 } ) ;
3132 } else if (
33+ plotProps . fullContainer &&
3234 plotProps . fullContainer . _subplot &&
3335 plotProps . fullContainer . _subplot . includes ( 'yaxis' )
3436 ) {
@@ -48,6 +50,7 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
4850 modifyPlotProps : ( props , context , plotProps ) => {
4951 let options = [ ] ;
5052 if (
53+ plotProps . fullContainer &&
5154 plotProps . fullContainer . _subplot &&
5255 plotProps . fullContainer . _subplot . includes ( 'xaxis' )
5356 ) {
@@ -58,6 +61,7 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
5861 } ;
5962 } ) ;
6063 } else if (
64+ plotProps . fullContainer &&
6165 plotProps . fullContainer . _subplot &&
6266 plotProps . fullContainer . _subplot . includes ( 'yaxis' )
6367 ) {
@@ -71,7 +75,8 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
7175
7276 // filter out the current axisID, can't overlay over itself
7377 plotProps . options = options . filter (
74- option => context . fullContainer . _id !== option . value
78+ option =>
79+ context . fullContainer && context . fullContainer . _id !== option . value
7580 ) ;
7681
7782 plotProps . clearable = true ;
@@ -80,25 +85,9 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
8085
8186export const RangesliderVisible = connectToContainer ( UnconnectedRadio , {
8287 modifyPlotProps : ( props , context , plotProps ) => {
83- if (
84- ! plotProps . isVisible &&
85- context . fullContainer . _id &&
86- context . fullContainer . _id . startsWith ( 'x' )
87- ) {
88- plotProps . isVisible = true ;
89- return ;
90- }
91- } ,
92- } ) ;
93-
94- export const RangeselectorVisible = connectToContainer ( UnconnectedRadio , {
95- modifyPlotProps : ( props , context , plotProps ) => {
96- if (
97- ! plotProps . isVisible &&
98- context . fullContainer . _id &&
99- context . fullContainer . _id . startsWith ( 'x' ) &&
100- context . fullContainer . type === 'date'
101- ) {
88+ if ( ! plotProps . fullValue ) {
89+ plotProps . fullValue = false ;
90+ plotProps . visible = false ;
10291 plotProps . isVisible = true ;
10392 return ;
10493 }
@@ -109,6 +98,7 @@ export const AxisSide = connectToContainer(UnconnectedRadio, {
10998 modifyPlotProps : ( props , context , plotProps ) => {
11099 const _ = props . localize ;
111100 if (
101+ context . fullContainer &&
112102 context . fullContainer . _id &&
113103 context . fullContainer . _id . startsWith ( 'y' )
114104 ) {
@@ -120,6 +110,7 @@ export const AxisSide = connectToContainer(UnconnectedRadio, {
120110 }
121111
122112 if (
113+ context . fullContainer &&
123114 context . fullContainer . _id &&
124115 context . fullContainer . _id . startsWith ( 'x' )
125116 ) {
0 commit comments