From ffe1be59eab7b752edd7445d38cdfc9f660eba97 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 20 Jan 2025 16:18:09 +0100 Subject: [PATCH] Use a default parameter for goToPage as isn't ~always called with a single one --- internal/ui/static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/static/js/app.js b/internal/ui/static/js/app.js index 405d0a85..35df18a2 100644 --- a/internal/ui/static/js/app.js +++ b/internal/ui/static/js/app.js @@ -433,7 +433,7 @@ function unsubscribeFromFeed() { * @param {string} page Page to redirect to. * @param {boolean} fallbackSelf Refresh actual page if the page is not found. */ -function goToPage(page, fallbackSelf) { +function goToPage(page, fallbackSelf = true) { const element = document.querySelector(":is(a, button)[data-page=" + page + "]"); if (element) {