committed by
GitHub
parent
58919ba763
commit
8ea4210582
5
.changeset/nice-pandas-double.md
Normal file
5
.changeset/nice-pandas-double.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@nhost/dashboard': minor
|
||||
---
|
||||
|
||||
fix: error toasts can be closed individually, instead of dismissing all toasts at once
|
||||
@@ -43,13 +43,13 @@ export default async function execPromiseWithErrorToast(
|
||||
|
||||
onError?.(error);
|
||||
|
||||
toast.custom(
|
||||
const errorToastId = toast.custom(
|
||||
(t) => (
|
||||
<ErrorToast
|
||||
isVisible={t.visible}
|
||||
errorMessage={errorMessage}
|
||||
error={error}
|
||||
close={() => toast.dismiss()}
|
||||
close={() => toast.dismiss(errorToastId)}
|
||||
/>
|
||||
),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user