diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx index 0e16bb817..92a683c2f 100644 --- a/frontend/src/toaster.tsx +++ b/frontend/src/toaster.tsx @@ -81,7 +81,10 @@ class Toaster extends Logger { instance = findToasterRoot(tree, 0); } this.node = instance.return; - this.rNode = this.node.return; + this.rNode = findInReactTree( + this.node.return.return, + (node) => node?.stateNode && node.type?.InstallErrorReportingStore, + ); let toast: any; let renderedToast: ReactNode = null; let innerPatched: any;