Skip to content

Commit

Permalink
Merge pull request #44 from AlongTheBlue/alongCourses
Browse files Browse the repository at this point in the history
fix: category 수정
  • Loading branch information
yeilkk authored Oct 14, 2024
2 parents 5f007aa + 4aa8d14 commit a9e3df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/AlongBluesPlan.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import AroundMap from "../components/AroundMap";
import TravelCoursesList from "../components/TravelCoursesList";
import axios from "axios";
import Search from "../components/Search"
import { getCategory, getKrCategory } from "../utils/data";

const AlongBluesPlan = ({user}) => {
const { id } = useParams();
Expand All @@ -32,17 +33,16 @@ const AlongBluesPlan = ({user}) => {

const saveTravelCourses = async () => {
console.log("save: ", travelCourses)
const category = getCategory(course.category)
try {
const postData = {
id,
title: selectedBlue.title,
blueItems: travelCourses.map((course, index) => ({
id: index,
title: index === 0 ? selectedBlue.title : course.title,
address: course.address,
xMap: course.lng,
yMap: course.lat,
category: course.category,
category: category,
})),
};

Expand Down

0 comments on commit a9e3df5

Please sign in to comment.