Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/javascript/utils/react-bootloader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ if (process.env.SENTRY_DSN) {
)
if (isNetworkError) return null

// Drop non-actionable DOM removeChild errors (third-party scripts like reCAPTCHA
// trying to clean up nodes that React has already unmounted)
const isRemoveChildError = event.exception?.values?.some((ex) =>
ex.value?.includes("Failed to execute 'removeChild' on 'Node'")
)
if (isRemoveChildError) return null

const tag = document.querySelector<HTMLMetaElement>(
'meta[name="user-id"]'
)
Expand Down
Loading