Fix automatic id generation for RessourceLists

This commit is contained in:
Patrick Jentsch 2022-01-14 14:14:04 +01:00
parent e356be77da
commit 0647537192

View File

@ -43,7 +43,7 @@ class RessourceList {
if (!(listElement.hasAttribute('id'))) { if (!(listElement.hasAttribute('id'))) {
for (i = 0; true; i++) { for (i = 0; true; i++) {
if (document.querySelector(`ressource-list-${i}`)) {continue;} if (document.querySelector(`#ressource-list-${i}`)) {continue;}
listElement.id = `ressource-list-${i}`; listElement.id = `ressource-list-${i}`;
break; break;
} }