Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCuadron committed Nov 5, 2024
2 parents d644f45 + e497438 commit ec94128
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions frontend/src/routes/_oh.app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
json,
ClientActionFunctionArgs,
useRouteLoaderData,
redirect,
} from "@remix-run/react";
import { useDispatch, useSelector } from "react-redux";
import WebSocket from "ws";
Expand Down Expand Up @@ -47,8 +46,6 @@ import { base64ToBlob } from "#/utils/base64-to-blob";
import { clientLoader as rootClientLoader } from "#/routes/_oh";
import { clearJupyter } from "#/state/jupyterSlice";
import { FilesProvider } from "#/context/files";
import { clearSession } from "#/utils/clear-session";
import { userIsAuthenticated } from "#/utils/user-is-authenticated";
import { ErrorObservation } from "#/types/core/observations";
import { ChatInterface } from "#/components/chat-interface";

Expand All @@ -72,16 +69,6 @@ const isAgentStateChange = (

export const clientLoader = async () => {
const ghToken = localStorage.getItem("ghToken");
try {
const isAuthed = await userIsAuthenticated();
if (!isAuthed) {
clearSession();
return redirect("/");
}
} catch (error) {
clearSession();
return redirect("/");
}

const q = store.getState().initalQuery.initialQuery;
const repo =
Expand Down Expand Up @@ -127,6 +114,7 @@ export const clientAction = async ({ request }: ClientActionFunctionArgs) => {
};

function App() {
console.log("render app");

Check warning on line 117 in frontend/src/routes/_oh.app.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

Unexpected console statement
const dispatch = useDispatch();
const { files, importedProjectZip } = useSelector(
(state: RootState) => state.initalQuery,
Expand Down

0 comments on commit ec94128

Please sign in to comment.