From c8e134cef55686696ff9140e90b839525ddc6668 Mon Sep 17 00:00:00 2001 From: Maikel Date: Tue, 25 Jun 2024 11:50:01 +1000 Subject: [PATCH] Remove redundant `wait` loading report content Co-authored-by: Gaetan Craig-Riou <40413322+rioug@users.noreply.github.com> --- app/views/admin/reports/_display.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/reports/_display.html.haml b/app/views/admin/reports/_display.html.haml index b87ab0345d..777710540c 100644 --- a/app/views/admin/reports/_display.html.haml +++ b/app/views/admin/reports/_display.html.haml @@ -2,4 +2,4 @@ %p.notice= t ".report_is_big" %p= link_to t(".display_anyway"), file_url, target: "_blank", class: "button icon icon-file", - onclick: "(async function (element) { element.outerHTML = await (await (await fetch(element.href))).text() })(this); return false;" + onclick: "(async function (element) { element.outerHTML = await (await fetch(element.href)).text() })(this); return false;"