mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Timeout on query notice
This commit is contained in:
@@ -40,8 +40,6 @@ export default function useQueryNotices() {
|
||||
}
|
||||
|
||||
if (message) {
|
||||
toast.success(message);
|
||||
|
||||
// Remove the notice param from the URL to prevent duplicate toasts
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
params.delete("notice");
|
||||
@@ -50,6 +48,8 @@ export default function useQueryNotices() {
|
||||
pathname: window.location.pathname,
|
||||
search: search ? `?${search}` : "",
|
||||
});
|
||||
|
||||
setTimeout(() => toast.success(message), 0);
|
||||
}
|
||||
}, [t, notice, history]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user