diff --git a/src/electron/frontend/core/components/Dashboard.js b/src/electron/frontend/core/components/Dashboard.js index 4161163b1..d2a72d0e8 100644 --- a/src/electron/frontend/core/components/Dashboard.js +++ b/src/electron/frontend/core/components/Dashboard.js @@ -278,7 +278,9 @@ export class Dashboard extends LitElement { this.main.onTransition(previousId); // Revert back to previous page const hasHTML = /<[^>]*>/.test(e); page.notify( - hasHTML ? e.message : `

Fallback to previous page after error occurred

${e}`, + hasHTML + ? e.message + : `

Fallback to previous page after error occurred

${e}`, "error" ); });