Skip to content

Commit

Permalink
Fix some more playground errors (#1975)
Browse files Browse the repository at this point in the history
This commit adds `ErrorBoundary` back in to catch some more errors.

Related-to: GH-1956.
Closes GH-1975.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
xHomu committed Mar 15, 2022
1 parent 4f5d7ba commit 2886021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/_component/editor.client.js
Expand Up @@ -241,7 +241,9 @@ export const Editor = ({children}) => {
<TabPanel>
<noscript>Enable JavaScript for the rendered result.</noscript>
<div className="frame-body frame-body-box-fixed-height frame-body-box">
{state.file && state.file.result ? <Preview /> : null}
<ErrorBoundary FallbackComponent={ErrorFallback}>
{state.file && state.file.result ? <Preview /> : null}
</ErrorBoundary>
</div>
</TabPanel>
<TabPanel>
Expand Down

1 comment on commit 2886021

@vercel
Copy link

@vercel vercel bot commented on 2886021 Mar 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.