@@ -57,9 +57,7 @@ var CascadingPaneSubView = function (_React$Component) {
5757 cascSelect = _props . cascSelect ,
5858 getCascadingSubView = _props . getCascadingSubView ;
5959
60- if ( getCascadingSubView ) {
61- if ( cascSelect ) getCascadingSubView ( cascSelect ) ;
62- }
60+ if ( cascSelect ) getCascadingSubView ( cascSelect ) ;
6361 }
6462 } , {
6563 key : 'componentWillReceiveProps' ,
@@ -88,15 +86,11 @@ var CascadingPaneSubView = function (_React$Component) {
8886 if ( cascSelect ) {
8987 if ( ! nextProps . cascSelect || cascSelect !== nextProps . cascSelect ) {
9088 newState . navSelect = nextProps . cascSelect || '' ;
91- if ( getCascadingSubView ) {
92- if ( nextProps . cascSelect ) getCascadingSubView ( nextProps . cascSelect ) ;
93- }
89+ if ( nextProps . cascSelect ) getCascadingSubView ( nextProps . cascSelect ) ;
9490 }
9591 } else if ( nextProps . cascSelect ) {
9692 newState . navSelect = nextProps . cascSelect ;
97- if ( getCascadingSubView ) {
98- getCascadingSubView ( nextProps . cascSelect ) ;
99- }
93+ getCascadingSubView ( nextProps . cascSelect ) ;
10094 }
10195 if ( Object . keys ( newState ) . length > 0 ) {
10296 this . setState ( _extends ( { } , newState ) ) ;
@@ -129,7 +123,7 @@ var CascadingPaneSubView = function (_React$Component) {
129123 _react2 . default . createElement (
130124 _LoadingComponent2 . default ,
131125 mainViewFetch ,
132- getCascadingSubview ? _react2 . default . createElement (
126+ _react2 . default . createElement (
133127 _LoadingComponent2 . default ,
134128 subViewFetch ,
135129 fetchedSub && fetchedMain && _react2 . default . cloneElement ( contentDisplay , {
@@ -141,14 +135,7 @@ var CascadingPaneSubView = function (_React$Component) {
141135 navSelect : navSelect ,
142136 mainSelect : mainSelect
143137 } )
144- ) : _react2 . default . cloneElement ( contentDisplay , {
145- groupData : groupData ,
146- memberData : memberData ,
147- data : data ,
148- reloadMainView : reloadMainView ,
149- navSelect : navSelect ,
150- mainSelect : mainSelect
151- } )
138+ )
152139 )
153140 ) ;
154141 }
@@ -189,6 +176,9 @@ CascadingPaneSubView.defaultProps = {
189176 groupData : { } ,
190177 memberData : { } ,
191178 data : { } ,
179+ getCascadingSubView : function getCascadingSubView ( f ) {
180+ return f ;
181+ } ,
192182 subViewFetch : {
193183 status : '' ,
194184 isFetching : false
0 commit comments