Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #496 from SELab-2/fix-osoc-create
Browse files Browse the repository at this point in the history
fix: fixed osoc crete
  • Loading branch information
HuanYu-Tan authored Apr 28, 2022
2 parents 3232e40 + 55d9f9e commit 13899a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/components/Filter/OsocFilter/OsocFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export const OsocCreateFilter: React.FC<{
*/
const create = async () => {
isLoading(true);
const sessionKey = getSession ? await getSession() : "";
const { sessionKey } = getSession
? await getSession()
: { sessionKey: "" };
if (sessionKey !== "") {
const response = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/osoc/create`,
Expand Down

0 comments on commit 13899a9

Please sign in to comment.