Skip to content

Commit

Permalink
chore: make sure route is refreshed on page change (just incase)
Browse files Browse the repository at this point in the history
  • Loading branch information
FusionSid committed Sep 5, 2024
1 parent 298536f commit 8c13617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/components/teachers/weeklyTimetable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const WeeklyTimetable = ({
<div className="flex items-center gap-px rounded-lg bg-gray-100 p-1">
<button
onClick={() => {
router.refresh();
router.push("/dashboard/timetable");
}}
className={
Expand All @@ -139,6 +140,7 @@ const WeeklyTimetable = ({
</button>
<button
onClick={() => {
router.refresh();
router.push(
"/dashboard/timetable?week=next",
);
Expand Down

0 comments on commit 8c13617

Please sign in to comment.