Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nextjs ui throws exception on error ts file #208

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SavedKeys from "@/app/_components/third-party-services/saved-keys";
import { getErrorMessage } from "@/utils/error";
import { getErrorMessage } from "@/utils/errors";
import { GetServiceKeysResponse } from "@/types/service-keys";
import {
getProtocolAndHost,
Expand Down
2 changes: 1 addition & 1 deletion webapp/app/_stores/useGlobalStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create } from "zustand";
import { JobDescription } from "@/types/job-descriptions";
import { ResumeProcessorResponse } from "@/types/resume-processor";
import { getErrorMessage } from "@/utils/error";
import { getErrorMessage } from "@/utils/errors";

type GlobalStoreState = {
file: File | null;
Expand Down
1 change: 0 additions & 1 deletion webapp/app/_utils/error.ts → webapp/app/_utils/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use client";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed "use client"; declaration within the now renamed errors.ts file, to correctly allow the functions defined within to be called on the server.

export interface FastAPIError {
detail: string;
}
Expand Down