mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
Hide fetch notification if error
This commit is contained in:
@@ -112,6 +112,10 @@ export const useHandlePlayQueueAdd = () => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearTimeout(timeoutIds.current[fetchId] as ReturnType<typeof setTimeout>);
|
||||||
|
delete timeoutIds.current[fetchId];
|
||||||
|
toast.hide(fetchId);
|
||||||
|
|
||||||
return toast.error({
|
return toast.error({
|
||||||
message: err.message,
|
message: err.message,
|
||||||
title: 'Play queue add failed',
|
title: 'Play queue add failed',
|
||||||
|
|||||||
Reference in New Issue
Block a user