diff --git a/app/views/env/index.js.haml b/app/views/env/index.js.haml index 68ea73a4..f4bd69cf 100644 --- a/app/views/env/index.js.haml +++ b/app/views/env/index.js.haml @@ -1,7 +1,7 @@ = cache @site do :plain window.env = { - AIRBRAKE_SITE_ID: #{@site&.id || 1}, - AIRBRAKE_API_KEY: "#{@site&.airbrake_api_key}", + AIRBRAKE_SITE_ID: #{@site.id}, + AIRBRAKE_API_KEY: "#{@site.airbrake_api_key}", PANEL_URL: "#{ENV['PANEL_URL']}" }