2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-28 09:03:41 +00:00

Log boundary errors to console (#11125)

This commit is contained in:
Oliver
2026-01-13 17:19:08 +11:00
committed by GitHub
parent dbc8b7241d
commit ec0fd650ca

View File

@@ -28,6 +28,7 @@ export function Boundary({
const onError = useCallback(
(error: unknown, componentStack: string | undefined, eventId: string) => {
console.error(`ERR: Error rendering component: ${label}`);
console.error(error);
},
[]
);