diff --git a/frontend/src/scenes/notebooks/Notebook/Notebook.tsx b/frontend/src/scenes/notebooks/Notebook/Notebook.tsx
index afc5906272451..296301a7d8f7c 100644
--- a/frontend/src/scenes/notebooks/Notebook/Notebook.tsx
+++ b/frontend/src/scenes/notebooks/Notebook/Notebook.tsx
@@ -16,6 +16,7 @@ import { EditorFocusPosition } from './utils'
import { FlaggedFeature } from 'lib/components/FlaggedFeature'
import { FEATURE_FLAGS } from 'lib/constants'
import { NotebookSidebar } from './NotebookSidebar'
+import { ErrorBoundary } from '~/layout/ErrorBoundary'
export type NotebookProps = {
shortId: string
@@ -101,23 +102,25 @@ export function Notebook({ shortId, editable = false, initialAutofocus = null }:
- {
- if (node.type.name === 'heading' && node.attrs.level === 1) {
- return `Untitled - maybe.. "${headingPlaceholder}"`
- }
+
+ {
+ if (node.type.name === 'heading' && node.attrs.level === 1) {
+ return `Untitled - maybe.. "${headingPlaceholder}"`
+ }
- if (node.type.name === 'heading') {
- return `Heading ${node.attrs.level}`
- }
+ if (node.type.name === 'heading') {
+ return `Heading ${node.attrs.level}`
+ }
- return ''
- }}
- />
+ return ''
+ }}
+ />
+