Skip to content

Commit

Permalink
fix: 에픽 리스트를 스토리 리스트로 변경할 때 rankValue를 넘겨주지 않아 생기는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
surinkwon committed Aug 4, 2024
1 parent abc5053 commit 833ea86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils/changeEpicListToStoryList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { EpicDTO } from "../types/DTO/backlogDTO";

const changeEpicListToStoryList = (epicList: EpicDTO[]) => {
const newStoryList: UnfinishedStory[] = [];
epicList.forEach(({ id, name, color, storyList }) => {
epicList.forEach(({ id, name, color, rankValue, storyList }) => {
storyList.forEach((story) => {
const newStory = { ...story, epic: { id, name, color } };
const newStory = { ...story, epic: { id, name, color, rankValue } };
if (!newStory.taskList) {
newStory.taskList = [];
}
Expand Down

0 comments on commit 833ea86

Please sign in to comment.