A free, self-hostable news aggregator…
Fix menu warning (#2353)
Alexandre Alapetite1b7cf6b0354c
diff --git a/p/scripts/main.js b/p/scripts/main.jsindex a44a22c6a..215d4117b 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -692,7 +692,10 @@ function init_column_categories() {a.href = '#dropdown-' + id;div.querySelector('.dropdown-target').id = 'dropdown-' + id;div.insertAdjacentHTML('beforeend', template);- div.querySelector('button.confirm').disabled = false;+ const b = div.querySelector('button.confirm');+ if (b) {+ b.disabled = false;+ }} else if (getComputedStyle(dropdownMenu).display === 'none') {const id2 = div.closest('.item').id.substr(2);a.href = '#dropdown-' + id2;