From df38e12e3c669291928803f8ef82f342ab340ee9 Mon Sep 17 00:00:00 2001 From: void Date: Wed, 28 Apr 2021 18:00:56 +0000 Subject: [PATCH] fallar si no existe panel.sutty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #1279 antes fallaba silenciosamente y rompía airbrake que en consecuencia rompía el resto del javacript --- app/views/env/index.js.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']}" }