From f9760abc02c4768e877ed6cefc67bd1e3f76c322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 27 Feb 2022 12:29:40 +0800 Subject: [PATCH] fix error --- app/views/galleries/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index 8bb3c39..9e22909 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -1,6 +1,6 @@ <% params = OrbitHelper.params - page = Page.where(url:params['url']).first + page = @page || Page.where(url:params['url']).first @layout_type = 0 if page.methods.include?(:select_option_items) @show_option_items = ModuleApp.where(key: 'gallery').last.show_option_items rescue nil