diff --git a/app/(client)/dashboard/RoomList.tsx b/app/(client)/dashboard/RoomList.tsx index fe3361a..1bc308f 100644 --- a/app/(client)/dashboard/RoomList.tsx +++ b/app/(client)/dashboard/RoomList.tsx @@ -1,7 +1,7 @@ "use client"; import Link from "next/link"; -import { useState } from "react"; +import { useEffect, useState } from "react"; import { IoEnterOutline, IoTrashBinOutline } from "react-icons/io5"; import { env } from "env.mjs"; import LoadingIndicator from "@/_components/LoadingIndicator"; @@ -49,6 +49,10 @@ const RoomList = () => { }); }; + useEffect(() => { + void getRoomsHandler(); + }, []); + return (
{/* Modal for Adding Rooms */}