diff --git a/frontend/src/Presentation/components/Details/DetailContent.container.tsx b/frontend/src/Presentation/components/Details/DetailContent.container.tsx index a2f68a958..7e1e5a04a 100644 --- a/frontend/src/Presentation/components/Details/DetailContent.container.tsx +++ b/frontend/src/Presentation/components/Details/DetailContent.container.tsx @@ -4,7 +4,10 @@ import { useRecoilState } from "recoil"; import { padToNDigits } from "@/Cabinet/utils/dateUtils"; import { isCurrentModalState } from "@/Presentation/recoil/atoms"; import DetailContent from "@/Presentation/components/Details/DetailContent"; -import { IPresentationScheduleDetailInfo } from "@/Presentation/types/dto/presentation.dto"; +import { + IExtendedPresentationScheduleDetailInfo, + IPresentationScheduleDetailInfo, +} from "@/Presentation/types/dto/presentation.dto"; import { axiosGetPresentationSchedule, getAdminPresentationSchedule, @@ -77,7 +80,7 @@ const DetailContentContainer = () => { requestDate.month ); const presentationInfo = response.data.forms.map( - (info: IPresentationScheduleDetailInfo) => + (info: IExtendedPresentationScheduleDetailInfo) => info.category === "DUMMY" ? createEmptyPresentation(new Date(info.dateTime)) : info diff --git a/frontend/src/Presentation/types/dto/presentation.dto.ts b/frontend/src/Presentation/types/dto/presentation.dto.ts index 390d287a9..a385ca159 100644 --- a/frontend/src/Presentation/types/dto/presentation.dto.ts +++ b/frontend/src/Presentation/types/dto/presentation.dto.ts @@ -43,6 +43,11 @@ export interface IPresentationScheduleDetailInfo { presentationLocation: PresentationLocation | null; } +export interface IExtendedPresentationScheduleDetailInfo + extends Omit { + category: PresentationCategoryType | "DUMMY" | null; +} + export interface IAnimation { min_width: number; min_height: number; diff --git a/frontend/src/Presentation/types/enum/presentation.type.enum.ts b/frontend/src/Presentation/types/enum/presentation.type.enum.ts index 27081287f..3616ed939 100644 --- a/frontend/src/Presentation/types/enum/presentation.type.enum.ts +++ b/frontend/src/Presentation/types/enum/presentation.type.enum.ts @@ -25,5 +25,4 @@ export enum PresentationCategoryType { ETC = "ETC", TASK = "TASK", STUDY = "STUDY", - DUMMY = "DUMMY", }