Attempt at a fix for the test

This commit is contained in:
Jan Faracik committed 2025-01-24 14:55:53 +00:00
1 parent 3a05e63a64
commit b8564fad1b
1 file changed
+6 -3
+6 -3
View File
@@ -106,9 +106,12 @@ document.addEventListener("DOMContentLoaded", () => {
}
function cleanCopyFromOption() {
document
.querySelector('#createItem input[type="radio"][value="copy"]')
.removeAttribute("checked");
const copyRadio = document.querySelector(
'#createItem input[type="radio"][value="copy"]',
);
if (copyRadio) {
copyRadio.removeAttribute("checked");
}
document.querySelector(
'#createItem input[type="text"][name="from"]',
).value = "";