diff --git a/app/views/reports/show.html.slim b/app/views/reports/show.html.slim index 6e14462..b778a98 100644 --- a/app/views/reports/show.html.slim +++ b/app/views/reports/show.html.slim @@ -20,8 +20,9 @@ p.small.mb-2 = link_to(page.path, report_path(@report, page_id: page.id), class: "nav-link#{@current_page&.id == page.id ? " active" : nil }", data: { "turbo-action": :advance }) = turbo_frame_tag "new_page_frame" do = render partial: "reports/new_page_button", locals: { report: @report } - = turbo_frame_tag(dom_id(@current_page, :notes)) do - = render partial: "pages/notes", locals: { page: @current_page } + - if @current_page + = turbo_frame_tag(dom_id(@current_page, :notes)) do + = render partial: "pages/notes", locals: { page: @current_page } .col-lg-9.col-md-6.col-sm-12 - if @current_page = render @current_page