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:
@@ -28,6 +28,7 @@ export function Boundary({
|
|||||||
const onError = useCallback(
|
const onError = useCallback(
|
||||||
(error: unknown, componentStack: string | undefined, eventId: string) => {
|
(error: unknown, componentStack: string | undefined, eventId: string) => {
|
||||||
console.error(`ERR: Error rendering component: ${label}`);
|
console.error(`ERR: Error rendering component: ${label}`);
|
||||||
|
console.error(error);
|
||||||
},
|
},
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user