diff --git a/forge/routes/ui/index.js b/forge/routes/ui/index.js index 46b35c85b0..0ec35d7d7c 100644 --- a/forge/routes/ui/index.js +++ b/forge/routes/ui/index.js @@ -65,8 +65,8 @@ module.exports = async function (app) { ` } - if (telemetry.frontend.sentry.dsn) { - injection += `` + if (telemetry.frontend?.sentry?.dsn) { + injection += `` } // inject into index.html