From d5b17aa842e682875dd96bac4ab34afaf057db35 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Fri, 2 Jun 2023 17:09:01 +0200 Subject: [PATCH] Added the ErrorElement to the main.jsx --- client/src/main.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main.jsx b/client/src/main.jsx index 724b8c1..8003d8f 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -11,7 +11,8 @@ const router = createBrowserRouter([{ index: route.path === '/', path: route.path === '/' ? undefined : route.path, element: route.component - })) + })), + errorElement: }]); ReactDOM.createRoot(document.getElementById('root')).render(