fix: only load error overlay in development (#2460)

This commit is contained in:
Marvin Hagemeister
2024-05-24 20:29:59 +02:00
committed by GitHub
parent 584e5716c3
commit 77dc77826e
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ function FreshRuntimeScript() {
__html: scriptContent,
}}
/>
<ShowErrorOverlay />
{ctx.config.mode === "development" ? <ShowErrorOverlay /> : null}
</>
);
}