Merged in fix/remove-on-error (pull request #2142)

fix: revert onError on the Script component

* fix: revert onError on the Script component
This commit is contained in:
Linus Flood
2025-05-19 11:06:42 +00:00
parent fb29df206b
commit d880411e48
2 changed files with 0 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
import * as Sentry from "@sentry/nextjs"
import Script from "next/script"
import { env } from "@/env/server"
@@ -9,10 +8,6 @@ export default function AdobeSDKScript() {
data-cookieconsent="statistics"
src={env.ADOBE_SDK_SCRIPT_SRC}
async
onError={(e) => {
console.error("Failed to load AdobeSDK script", e)
Sentry.captureException(e)
}}
/>
) : null
}

View File

@@ -1,4 +1,3 @@
import * as Sentry from "@sentry/nextjs"
import Script from "next/script"
import { env } from "@/env/server"
@@ -27,10 +26,6 @@ export default function GTMScript() {
`,
}}
async
onError={(e) => {
console.error("Failed to load GTM script", e)
Sentry.captureException(e)
}}
/>
) : null
}