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 713434d commit 8256a89Copy full SHA for 8256a89
app/renderer.tsx
@@ -401,15 +401,19 @@ function RenderedTreeNode({
401
);
402
case "tag": {
403
const { __reactjsxelement, ...args } = props;
404
- return (
405
- <__reactjsxelement {...args}>
406
- <RenderedChildren
407
- children={children}
408
- onChange={onChange}
409
- state={state}
410
- />
411
- </__reactjsxelement>
412
- );
+ if (children.length) {
+ return (
+ <__reactjsxelement {...args}>
+ <RenderedChildren
+ children={children}
+ onChange={onChange}
+ state={state}
+ />
+ </__reactjsxelement>
413
+ );
414
+ } else {
415
+ return <__reactjsxelement {...args} />;
416
+ }
417
}
418
case "countdown-timer": {
419
return (
0 commit comments