Skip to content

Commit 6eae48e

Browse files
committed
fix: 쿼리 파라미터 처리 방식 변경
1 parent 8cb0427 commit 6eae48e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/common/src/components/mdx_components/session_list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const SessionList: React.FC<SessionListPropType> = ErrorBoundary.with(
5656
Suspense.with({ fallback: <CircularProgress /> }, ({ event, types }) => {
5757
const { language } = Hooks.Common.useCommonContext();
5858
const backendAPIClient = Hooks.BackendAPI.useBackendClient();
59-
const params = { ...(event && { event }), ...(types && { types }) };
59+
const params = { ...(event && { event }), ...(types && { types: types.join(",") }) };
6060
const { data: sessions } = Hooks.BackendAPI.useSessionsQuery(backendAPIClient, params);
6161

6262
const warningMessage =

packages/common/src/schemas/backendAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace BackendAPISchemas {
7272

7373
export type SessionQueryParameterSchema = {
7474
event?: string;
75-
types?: string[];
75+
types?: string;
7676
};
7777

7878
export type SessionSchema = {

0 commit comments

Comments
 (0)