summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/toaster.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx
index 1b2e9b80..b636d7b3 100644
--- a/frontend/src/toaster.tsx
+++ b/frontend/src/toaster.tsx
@@ -40,11 +40,14 @@ class Toaster extends Logger {
let instance: any;
const tree = (document.getElementById('root') as any)._reactRootContainer._internalRoot.current;
const findToasterRoot = (currentNode: any, iters: number): any => {
- if (iters >= 50) {
- // currently 40
+ if (iters >= 65) {
+ // currently 65
return null;
}
- if (currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder')) {
+ if (
+ currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder') ||
+ currentNode?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPopup')
+ ) {
this.log(`Toaster root was found in ${iters} recursion cycles`);
return currentNode;
}