diff --git a/frontend/components/Filter/OsocFilter/OsocFilter.tsx b/frontend/components/Filter/OsocFilter/OsocFilter.tsx index acaccaa9..50a4d050 100644 --- a/frontend/components/Filter/OsocFilter/OsocFilter.tsx +++ b/frontend/components/Filter/OsocFilter/OsocFilter.tsx @@ -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`,