From 5bef881a125111f80242b40f92d756af0a8ed366 Mon Sep 17 00:00:00 2001 From: Magnus Anderssen Date: Wed, 25 Oct 2023 17:20:10 +0200 Subject: [PATCH] fix(grant): remove JS error on Grant page Closes #41098 Signed-off-by: Magnus Anderssen --- core/js/login/grant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/login/grant.js b/core/js/login/grant.js index c458bbbab84..c4d49505059 100644 --- a/core/js/login/grant.js +++ b/core/js/login/grant.js @@ -3,7 +3,7 @@ document.querySelector('form').addEventListener('submit', function(e) { if (wrapper === null) { return } - wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) { + Array.from(wrapper.getElementsByClassName('icon-confirm-white')).forEach(function(el) { el.classList.remove('icon-confirm-white') el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark') el.disabled = true -- 2.39.5