@@ -103,22 +103,22 @@ const UnconnectedContainer = props => {
103
103
104
104
content = (
105
105
< >
106
- { Array . isArray ( layout ) ? (
107
- layout . map ( ( c , i ) =>
106
+ { Array . isArray ( layout . components ) ? (
107
+ layout . components . map ( ( c , i ) =>
108
108
isSimpleComponent ( c ) ? (
109
109
c
110
110
) : (
111
111
< DashWrapper
112
112
_dashprivate_error = { error }
113
- componentPath = { [ i ] }
113
+ componentPath = { [ 'components' , i ] }
114
114
key = { i }
115
115
/>
116
116
)
117
117
)
118
118
) : (
119
119
< DashWrapper
120
120
_dashprivate_error = { error }
121
- componentPath = { [ ] }
121
+ componentPath = { [ 'components' ] }
122
122
/>
123
123
) }
124
124
</ >
@@ -153,7 +153,7 @@ function storeEffect(props, events, setErrorLoading) {
153
153
}
154
154
dispatch ( apiThunk ( '_dash-layout' , 'GET' , 'layoutRequest' ) ) ;
155
155
} else if ( layoutRequest . status === STATUS . OK ) {
156
- if ( isEmpty ( layout ) ) {
156
+ if ( isEmpty ( layout . components ) ) {
157
157
if ( typeof hooks . layout_post === 'function' ) {
158
158
hooks . layout_post ( layoutRequest . content ) ;
159
159
}
@@ -163,7 +163,12 @@ function storeEffect(props, events, setErrorLoading) {
163
163
) ;
164
164
dispatch (
165
165
setPaths (
166
- computePaths ( finalLayout , [ ] , null , events . current )
166
+ computePaths (
167
+ finalLayout ,
168
+ [ 'components' ] ,
169
+ null ,
170
+ events . current
171
+ )
167
172
)
168
173
) ;
169
174
dispatch ( setLayout ( finalLayout ) ) ;
@@ -194,7 +199,7 @@ function storeEffect(props, events, setErrorLoading) {
194
199
! isEmpty ( graphs ) &&
195
200
// LayoutRequest and its computed stores
196
201
layoutRequest . status === STATUS . OK &&
197
- ! isEmpty ( layout ) &&
202
+ ! isEmpty ( layout . components ) &&
198
203
// Hasn't already hydrated
199
204
appLifecycle === getAppState ( 'STARTED' )
200
205
) {
0 commit comments