5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 01:31:41 +00:00

fix: no fallar si no hay sitio del panel
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-06-10 12:18:25 -03:00
parent 679a3fde85
commit 504f30997e
2 changed files with 10 additions and 8 deletions

View file

@ -5,6 +5,7 @@ class EnvController < ActionController::Base
def index def index
@site = Site.find_by_name('panel') @site = Site.find_by_name('panel')
stale? @site
stale? @site if @site
end end
end end

View file

@ -1,3 +1,4 @@
- if @site
= cache @site do = cache @site do
:plain :plain
window.env = { window.env = {