From 9d50b9f619107717f684c30ea26ac90784333dfd Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 25 Sep 2023 00:16:19 -0600 Subject: [PATCH] Another hotfix --- app/(client)/dashboard/RoomList.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */}