mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
Fix build issue
This commit is contained in:
parent
ef04e4165e
commit
638a59b004
|
@ -19,9 +19,11 @@ const resetState = () => {
|
||||||
console.log('Resetting state after error fallback')
|
console.log('Resetting state after error fallback')
|
||||||
};
|
};
|
||||||
|
|
||||||
const logError = (error: Error, info: { componentStack: string }) => {
|
const logError = (error: Error, info: { componentStack?: string | null | undefined }) => {
|
||||||
console.log('Error fallback: ' + error.message)
|
console.log('Error fallback: ' + error.message);
|
||||||
console.log('Component stack: ' + info.componentStack)
|
if (info.componentStack) {
|
||||||
|
console.log('Component stack: ' + info.componentStack);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user