mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: data revalidation for collections and courses
fix: add collections tag to request
This commit is contained in:
parent
b582eaacfc
commit
7f4c2c7738
13 changed files with 28 additions and 23 deletions
|
|
@ -21,7 +21,7 @@ function TrailCourseElement(props: TrailCourseElementProps) {
|
|||
// Close activity
|
||||
let activity = await removeCourse(course_id, props.orgslug);
|
||||
// Mutate course
|
||||
revalidateTags(['courses'], props.orgslug);
|
||||
await revalidateTags(['courses'], props.orgslug);
|
||||
router.refresh();
|
||||
|
||||
// Mutate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue