Skip to content

Commit

Permalink
fix: 트랙 생성 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonystory98 authored Feb 23, 2023
1 parent cdd24a9 commit c025227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/apis/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export const PostTrack = async (trackname) => {
const response = await TrackService.postTrack(trackname);
qs('#track-make').insertAdjacentHTML(
'beforebegin',
trackCard(Math.floor(Math.random() * 20) + 1, trackname),
trackCard(
response.idx,
Math.floor(Math.random() * 20) + 1,
trackname,
),
);
succeedTrack(response.data);
} catch (error) {
Expand Down

0 comments on commit c025227

Please sign in to comment.