Skip to content

Commit

Permalink
[FE] FIX: 같은 날짜로 변경된 경우, DOM key값 중복 문제 index로 해결 #1718
Browse files Browse the repository at this point in the history
  • Loading branch information
jihyunk03 committed Dec 26, 2024
1 parent f8e3227 commit 5c949b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ const DropdownDateMenu = ({
isVisible={dropdownState.isVisible}
clickCount={clickCount}
>
{data.map((time) => {
{data.map((time, index) => {
const displayTime = time.split("/").slice(1).join("/");
return (
<DropdownOption
key={time}
key={index}
onClick={() => handleOptionSelect(time, displayTime)}
invalid={invalidDates?.includes(time)}
>
Expand Down

0 comments on commit 5c949b1

Please sign in to comment.