Skip to content

Commit 6b670b8

Browse files
committed
fix toast
1 parent eafd358 commit 6b670b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/modules/toast.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ export function showErrorToast(message: string, opts?: ToastOpts): Toast {
9595
return showToast(message, 'error', opts);
9696
}
9797

98-
function hideToastsByElement(el: Element): void {
98+
function hideToastByElement(el: Element): void {
9999
(el as ToastifyElement)?._giteaToastifyInstance?.hideToast();
100100
}
101101

102102
export function hideToastsFrom(parent: Element): void {
103-
queryElems(parent, ':scope > .toastify.on', hideToastsByElement);
103+
queryElems(parent, ':scope > .toastify.on', hideToastByElement);
104104
}
105105

106106
export function hideToastsAll(): void {
107-
queryElems(document, '.toastify.on', hideToastsByElement);
107+
queryElems(document, '.toastify.on', hideToastByElement);
108108
}

0 commit comments

Comments
 (0)