Skip to content

Commit 2886021

Browse files
authoredMar 15, 2022
Fix some more playground errors (#1975)
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>
1 parent 4f5d7ba commit 2886021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎docs/_component/editor.client.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export const Editor = ({children}) => {
241241
<TabPanel>
242242
<noscript>Enable JavaScript for the rendered result.</noscript>
243243
<div className="frame-body frame-body-box-fixed-height frame-body-box">
244-
{state.file && state.file.result ? <Preview /> : null}
244+
<ErrorBoundary FallbackComponent={ErrorFallback}>
245+
{state.file && state.file.result ? <Preview /> : null}
246+
</ErrorBoundary>
245247
</div>
246248
</TabPanel>
247249
<TabPanel>

1 commit comments

Comments
 (1)

vercel[bot] commented on Mar 15, 2022

@vercel[bot]

Successfully deployed to the following URLs:

Please sign in to comment.