From c5dbafaf90a532d3d36144bfb4f12d7303d4ca5d Mon Sep 17 00:00:00 2001 From: cjeongmin Date: Tue, 1 Oct 2024 20:56:34 +0900 Subject: [PATCH 1/2] fix: resolve issue --- src/features/trip/trip.slice.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/trip/trip.slice.ts b/src/features/trip/trip.slice.ts index 4fad5b3..ef0408f 100644 --- a/src/features/trip/trip.slice.ts +++ b/src/features/trip/trip.slice.ts @@ -190,13 +190,13 @@ export const useTripStore = create((set, get) => ({ const newActivities = [...activities]; - items.forEach((activity, index) => { + items.forEach((activity) => { if ( newActivities[day - 1].some((act) => act.dayTime === activity.dayTime) ) return; - newActivities[day - 1].push({ ...activity, dayNumber: index + 1 }); + newActivities[day - 1].push({ ...activity, dayNumber: day }); newActivities[day - 1].sort( (a, b) => TIME_ORDER[a.dayTime] - TIME_ORDER[b.dayTime], ); From dd299122d15d6a3b9744384b0010efe06d3fd71a Mon Sep 17 00:00:00 2001 From: cjeongmin Date: Tue, 1 Oct 2024 20:57:28 +0900 Subject: [PATCH 2/2] 1.1.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d79293c..07e6620 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "p-travel-log", - "version": "1.1.3", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "p-travel-log", - "version": "1.1.3", + "version": "1.1.4", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/package.json b/package.json index eef68cc..fcf4f14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p-travel-log", - "version": "1.1.3", + "version": "1.1.4", "private": true, "scripts": { "dev": "next dev",