fix: watchlist 500 from missing UUID and toast classList error

This commit is contained in:
2026-05-13 13:10:04 +02:00
parent 14b7668afa
commit ff15a82f10
3 changed files with 11 additions and 6 deletions

View File

@@ -29,7 +29,8 @@ const showToast = ({ message, duration = 3000 }: ToastOptions): void => {
return;
}
const toast = template.content.cloneNode(true) as HTMLElement;
const toast = template.content.cloneNode(true).firstElementChild as HTMLElement;
if (!toast) return;
const messageEl = toast.querySelector('.toast-message');
const closeBtn = toast.querySelector('.toast-close');