We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea2ecb commit 3a26a40Copy full SHA for 3a26a40
dash/dash-renderer/src/TreeContainer.js
@@ -225,6 +225,13 @@ class BaseTreeContainer extends Component {
225
if (node === undefined) {
226
return;
227
}
228
+ if (!node.length) {
229
+ return assoc(frontPath, node);
230
+ }
231
+ const firstNode = node[0][path[1]];
232
+ if (!firstNode) {
233
234
235
nodeValue = node.map((n, i) => ({
236
...n,
237
[path[1]]: isDryComponent(n[path[1]])
@@ -238,7 +245,7 @@ class BaseTreeContainer extends Component {
238
245
path[1]
239
246
])
240
247
)
241
- : n
248
+ : n[path[1]]
242
249
}));
243
250
path = [frontPath];
244
251
} else {
0 commit comments