From e757237029a1ba19ad3ca75e5868e213c3cce70e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 25 Apr 2024 15:26:25 +0530 Subject: [PATCH] feat: don't show widget on plain layout (#9297) --- app/views/layouts/portal.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/portal.html.erb b/app/views/layouts/portal.html.erb index f3f008305..bdb05e19c 100644 --- a/app/views/layouts/portal.html.erb +++ b/app/views/layouts/portal.html.erb @@ -128,7 +128,7 @@ By default, it renders: tocHeader: '<%= I18n.t('public_portal.toc_header') %>' }; - <% if @portal.channel_web_widget.present? %> + <% if @portal.channel_web_widget.present? && !@is_plain_layout_enabled %> <%= @portal.channel_web_widget.web_widget_script.html_safe %> <% end %>