Skip to content

Commit

Permalink
[FE] BUG: PresentationCategoryType에 DUMMY를 추가하면서 생겼던 버그 픽스 #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
wet6123 committed Oct 21, 2024
1 parent 0b3ae8c commit 29b1752
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/Presentation/types/dto/presentation.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export interface IPresentationScheduleDetailInfo {
presentationLocation: PresentationLocation | null;
}

export interface IExtendedPresentationScheduleDetailInfo
extends Omit<IPresentationScheduleDetailInfo, "category"> {
category: PresentationCategoryType | "DUMMY" | null;
}

export interface IAnimation {
min_width: number;
min_height: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ export enum PresentationCategoryType {
ETC = "ETC",
TASK = "TASK",
STUDY = "STUDY",
DUMMY = "DUMMY",
}

0 comments on commit 29b1752

Please sign in to comment.