mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 21:41:17 +00:00
Merge pull request #35 from Since-3/bug/course-create-unique-rooms
fixed that the right course are shown for course creation
This commit is contained in:
commit
9fc4496b95
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import { Button } from "@/src/components/ui/button";
|
|||
import { Checkbox } from "@/src/components/ui/checkbox";
|
||||
import { Label } from "@/src/components/ui/label";
|
||||
import { createCourse, updateCourse } from "../../actions/course-actions";
|
||||
import { getAllRooms } from "@/src/modules/rooms/actions/room-actions";
|
||||
import { getMyRooms } from "@/src/modules/rooms/actions/room-actions";
|
||||
import { toast } from "sonner";
|
||||
import { Course } from "../../types/course.types";
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ const CourseCreateView = ({
|
|||
// Load rooms from database
|
||||
useEffect(() => {
|
||||
const loadRooms = async () => {
|
||||
const result = await getAllRooms();
|
||||
const result = await getMyRooms();
|
||||
setIsLoadingRooms(true);
|
||||
if (result.success) {
|
||||
const roomOptions = result.rooms.map((room) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue