@@ -103,22 +103,22 @@ const UnconnectedContainer = props => {
103103
104104 content = (
105105 < >
106- { Array . isArray ( layout ) ? (
107- layout . map ( ( c , i ) =>
106+ { Array . isArray ( layout . components ) ? (
107+ layout . components . map ( ( c , i ) =>
108108 isSimpleComponent ( c ) ? (
109109 c
110110 ) : (
111111 < DashWrapper
112112 _dashprivate_error = { error }
113- componentPath = { [ i ] }
113+ componentPath = { [ 'components' , i ] }
114114 key = { i }
115115 />
116116 )
117117 )
118118 ) : (
119119 < DashWrapper
120120 _dashprivate_error = { error }
121- componentPath = { [ ] }
121+ componentPath = { [ 'components' ] }
122122 />
123123 ) }
124124 </ >
@@ -153,7 +153,7 @@ function storeEffect(props, events, setErrorLoading) {
153153 }
154154 dispatch ( apiThunk ( '_dash-layout' , 'GET' , 'layoutRequest' ) ) ;
155155 } else if ( layoutRequest . status === STATUS . OK ) {
156- if ( isEmpty ( layout ) ) {
156+ if ( isEmpty ( layout . components ) ) {
157157 if ( typeof hooks . layout_post === 'function' ) {
158158 hooks . layout_post ( layoutRequest . content ) ;
159159 }
@@ -163,7 +163,12 @@ function storeEffect(props, events, setErrorLoading) {
163163 ) ;
164164 dispatch (
165165 setPaths (
166- computePaths ( finalLayout , [ ] , null , events . current )
166+ computePaths (
167+ finalLayout ,
168+ [ 'components' ] ,
169+ null ,
170+ events . current
171+ )
167172 )
168173 ) ;
169174 dispatch ( setLayout ( finalLayout ) ) ;
@@ -194,7 +199,7 @@ function storeEffect(props, events, setErrorLoading) {
194199 ! isEmpty ( graphs ) &&
195200 // LayoutRequest and its computed stores
196201 layoutRequest . status === STATUS . OK &&
197- ! isEmpty ( layout ) &&
202+ ! isEmpty ( layout . components ) &&
198203 // Hasn't already hydrated
199204 appLifecycle === getAppState ( 'STARTED' )
200205 ) {
0 commit comments