Skip to content

Commit 4f656a7

Browse files
committed
fix(dashboard): Wrap VariablesEditor in ErrorBoundary
1 parent 96091b0 commit 4f656a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dashboard/src/dashboard-editor/ui/settings/content/edit-panel/panel-editor.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ export const PanelEditor = observer(({ panel }: { panel: PanelModelInstance }) =
181181
</Tabs.Panel>
182182

183183
<Tabs.Panel value="Variables">
184-
<WithPreview>
185-
<VariablesEditor />
186-
</WithPreview>
184+
<ErrorBoundary>
185+
<WithPreview>
186+
<VariablesEditor />
187+
</WithPreview>
188+
</ErrorBoundary>
187189
</Tabs.Panel>
188190

189191
<Tabs.Panel value="Visualization">

0 commit comments

Comments
 (0)