Skip to content

Commit

Permalink
Site Editor: Wrap each router area in 'ErrorBoundary'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Dec 1, 2024
1 parent 4775e70 commit 9496d64
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ function Layout() {
}
routeKey={ routeKey }
>
{ areas.sidebar }
<ErrorBoundary>
{ areas.sidebar }
</ErrorBoundary>
</SidebarContent>
<SaveHub />
<SavePanel />
Expand All @@ -157,7 +159,7 @@ function Layout() {
/>
</SidebarContent>
) }
{ areas.mobile }
<ErrorBoundary>{ areas.mobile }</ErrorBoundary>
</div>
) }

Expand All @@ -170,7 +172,7 @@ function Layout() {
maxWidth: widths?.content,
} }
>
{ areas.content }
<ErrorBoundary>{ areas.content }</ErrorBoundary>
</div>
) }

Expand All @@ -181,7 +183,7 @@ function Layout() {
maxWidth: widths?.edit,
} }
>
{ areas.edit }
<ErrorBoundary>{ areas.edit }</ErrorBoundary>
</div>
) }

Expand Down

0 comments on commit 9496d64

Please sign in to comment.