From 55d9f9ec6ef8d9c8e33170e2592f47ab913b1a47 Mon Sep 17 00:00:00 2001 From: Mouwrice Date: Thu, 28 Apr 2022 21:53:36 +0200 Subject: [PATCH] fix: fixed osoc crete --- frontend/components/Filter/OsocFilter/OsocFilter.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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`,