bugfix/ TRip: toasts not being dismissed
This commit is contained in:
@@ -115,6 +115,11 @@ export default function MediaRequestForm() {
|
|||||||
const handleSearch = async () => {
|
const handleSearch = async () => {
|
||||||
toast.dismiss();
|
toast.dismiss();
|
||||||
setIsSearching(true);
|
setIsSearching(true);
|
||||||
|
try {
|
||||||
|
if (metadataFetchToastId.current) toast.dismiss(metadataFetchToastId.current);
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
metadataFetchToastId.current = toast.info("Retrieving metadata...",
|
metadataFetchToastId.current = toast.info("Retrieving metadata...",
|
||||||
{
|
{
|
||||||
autoClose: false,
|
autoClose: false,
|
||||||
|
Reference in New Issue
Block a user