From 548964f728fb379107a0e8440928f31fd2c880ea Mon Sep 17 00:00:00 2001 From: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:41:11 -0500 Subject: [PATCH] Chore: Fix console warning for Canvas (#108351) --- public/app/features/canvas/runtime/root.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/features/canvas/runtime/root.tsx b/public/app/features/canvas/runtime/root.tsx index 4a1e8a207c8..512a4d78a90 100644 --- a/public/app/features/canvas/runtime/root.tsx +++ b/public/app/features/canvas/runtime/root.tsx @@ -1,3 +1,5 @@ +import { Fragment } from 'react'; + import { CanvasFrameOptions } from '../frame'; import { FrameState } from './frame'; @@ -49,7 +51,9 @@ export class RootElement extends FrameState { ref={this.setRootRef} style={{ ...this.sizeStyle, ...this.dataStyle }} > - {this.elements.map((v) => v.render())} + {this.elements.map((v) => ( + {v.render()} + ))} ); }