diff --git a/argilla-frontend/middleware/route-guard.ts b/argilla-frontend/middleware/route-guard.ts index e5df1b0d85..fa5e5da0a8 100644 --- a/argilla-frontend/middleware/route-guard.ts +++ b/argilla-frontend/middleware/route-guard.ts @@ -24,7 +24,8 @@ const { set } = useLocalStorage(); export default ({ $auth, route, redirect }: Context) => { const { isRunningOnHuggingFace } = useRunningEnvironment(); - console.log(route); + // By-pass unknown routes. This is needed to avoid errors with API calls. + if (route.name == null) return; switch (route.name) { case "sign-in":