We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3847de5 commit 3c16fceCopy full SHA for 3c16fce
2 files changed
apps/ticket-admin/src/data/admin/getTimeTables/queries.ts
@@ -23,7 +23,9 @@ export const timeTableOptions = (
23
queryFn: () => {
24
const url = getPathUrl(API_URL.ADMIN.TIME_TABLE, { eventId: params.eventId });
25
26
- return instance.get<TimeTableResponse>(url).then((res) => res.data);
+ return instance.get<TimeTableResponse>(url).then((res) => {
27
+ return res?.data || null;
28
+ });
29
},
30
};
31
apps/ticket-admin/src/lib/axios/index.ts
@@ -32,7 +32,7 @@ let isAlertShown = false;
32
33
// 응답 인터셉터
34
instance.interceptors.response.use(
35
- (response: AxiosResponse) => response.data,
+ (response: AxiosResponse) => response?.data,
36
async (error: AxiosError) => {
37
if (typeof window === "undefined") {
38
// Server에서는 기본 전파
0 commit comments