From a22d4ab9fbb4ad35106687cbe17b51a84afd4976 Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Thu, 23 Nov 2023 18:57:07 +0100 Subject: [PATCH] fix(app-page-builder): do not render children if elements were not found --- .../src/editor/plugins/elements/grid/PeGrid.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/app-page-builder/src/editor/plugins/elements/grid/PeGrid.tsx b/packages/app-page-builder/src/editor/plugins/elements/grid/PeGrid.tsx index 611a820170d..8ad66160d78 100644 --- a/packages/app-page-builder/src/editor/plugins/elements/grid/PeGrid.tsx +++ b/packages/app-page-builder/src/editor/plugins/elements/grid/PeGrid.tsx @@ -13,6 +13,10 @@ const PeGrid = createRenderer( elementWithChildrenByIdSelector(element.id) ) as Element; + if (!elementWithChildren) { + return null; + } + return ; }, {