Skip to content

Commit

Permalink
Merge pull request #452 from NIAEFEUP/fix/repeated-student-schedule-a…
Browse files Browse the repository at this point in the history
…dmin

fix: repeated student schedule in admin
  • Loading branch information
tomaspalma authored Feb 8, 2025
2 parents 9de39f4 + 082b3dd commit 9eb8bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/admin/useStudentsSchedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default (nmec: string) => {

}

const { data, error, mutate, isValidating } = useSWR("schedule", getSchedule, {});
const { data, error, mutate, isValidating } = useSWR("schedule-" + nmec, getSchedule, {});
const schedule = useMemo(() => data ? data.schedule : null, [data]);
const sigarraSynced = data ? data.noChanges : null;

Expand Down

0 comments on commit 9eb8bf4

Please sign in to comment.