Skip to content

Commit

Permalink
[FE] 하루 전체 일정 불러오는 fetch 매개변수 수정 (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
hafnium1923 authored Feb 18, 2024
1 parent 8423dc3 commit be8b7c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/hooks/queries/useFetchDailySchedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ export const useFetchDailySchedules = (
) => {
const { data } = useQuery(
['dailySchedules', year, month, day],
() => fetchSchedules(teamPlaceId, year, month + 1, day),
() =>
fetchSchedules(
teamPlaceId,
`${year}${month + 1}${day}`,
`${year}${month + 1}${day}`,
),
{
enabled: teamPlaceId > 0,
staleTime: STALE_TIME.DAILY_SCHEDULES,
Expand Down

0 comments on commit be8b7c4

Please sign in to comment.