Skip to content

Commit

Permalink
refactor: Skip unknow routes
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Nov 6, 2024
1 parent d3c9e27 commit ee445f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion argilla-frontend/middleware/route-guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit ee445f2

Please sign in to comment.