From 57dae366ca48a6fbc660300e4a9355ffa6fcb4ff 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 c458bbbab8488..c4d495050595d 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