mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +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')
|
||||
};
|
||||
|
||||
const logError = (error: Error, info: { componentStack: string }) => {
|
||||
console.log('Error fallback: ' + error.message)
|
||||
console.log('Component stack: ' + info.componentStack)
|
||||
const logError = (error: Error, info: { componentStack?: string | null | undefined }) => {
|
||||
console.log('Error fallback: ' + error.message);
|
||||
if (info.componentStack) {
|
||||
console.log('Component stack: ' + info.componentStack);
|
||||
}
|
||||
};
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
|
|
Loading…
Reference in New Issue
Block a user