We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae223f commit c563b01Copy full SHA for c563b01
electron/renderer/components/grid-item/grid-item.tsx
@@ -80,13 +80,15 @@ function separateResizeHandleComponents(nodes: ReactNode): {
80
81
if (Array.isArray(nodes)) {
82
for (const child of nodes) {
83
- if (child.key?.startsWith('resizableHandle-')) {
84
- resizeHandles.push(child);
85
- } else {
86
- children.push(child);
+ if (child) {
+ if (child.key?.startsWith('resizableHandle-')) {
+ resizeHandles.push(child);
+ } else {
87
+ children.push(child);
88
+ }
89
}
90
91
+ } else if (nodes) {
92
children.push(nodes);
93
94
0 commit comments