Skip to content

Commit

Permalink
fix(app-page-builder): do not render children if elements were not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Nov 23, 2023
1 parent b63c1f8 commit a22d4ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const PeGrid = createRenderer(
elementWithChildrenByIdSelector(element.id)
) as Element;

if (!elementWithChildren) {
return null;
}

return <Elements element={elementWithChildren} />;
},
{
Expand Down

0 comments on commit a22d4ab

Please sign in to comment.