diff --git a/packages/core/ui/ErrorMessageStackTraceDialog.tsx b/packages/core/ui/ErrorMessageStackTraceDialog.tsx
index 6a7eaed4a8a..726c0115739 100644
--- a/packages/core/ui/ErrorMessageStackTraceDialog.tsx
+++ b/packages/core/ui/ErrorMessageStackTraceDialog.tsx
@@ -88,6 +88,42 @@ function stripMessage(trace: string, error: unknown) {
}
}
+function Contents({ text }: { text: string }) {
+ const err = encodeURIComponent(
+ 'I got this error from JBrowse, here is the stack trace:\n\n```\n' +
+ text +
+ '\n```\n',
+ )
+ const githubLink = `https://github.com/GMOD/jbrowse-components/issues/new?labels=bug&title=JBrowse+issue&body=${err}`
+ const emailLink = `mailto:jbrowse2dev@gmail.com?subject=JBrowse%202%20error&body=${err}`
+
+ return (
+ <>
+
+ {text} ++ > + ) +} + export default function ErrorMessageStackTraceDialog({ error, onClose, @@ -128,42 +164,13 @@ export default function ErrorMessageStackTraceDialog({ window.JBrowseSession ? `JBrowse ${window.JBrowseSession.version}` : '', ].join('\n') - const err = encodeURIComponent( - 'I got this error from JBrowse, here is the stack trace:\n\n```\n' + - errorBoxText + - '\n```\n', - ) - const githubLink = `https://github.com/GMOD/jbrowse-components/issues/new?labels=bug&title=JBrowse+issue&body=${err}` - const emailLink = `mailto:jbrowse2dev@gmail.com?subject=JBrowse%202%20error&body=${err}` return (