From 6242914350e77526c0672db667173ad59d5a5aee Mon Sep 17 00:00:00 2001 From: MytsV Date: Fri, 2 Aug 2024 15:16:18 +0300 Subject: [PATCH] Remove mock data from the RSE page --- src/app/(rucio)/rse/page/[name]/page.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/(rucio)/rse/page/[name]/page.tsx b/src/app/(rucio)/rse/page/[name]/page.tsx index 321040460..a901b799d 100644 --- a/src/app/(rucio)/rse/page/[name]/page.tsx +++ b/src/app/(rucio)/rse/page/[name]/page.tsx @@ -4,8 +4,6 @@ import { PageRSE as PageRSEStory } from "@/component-library/Pages/RSE/PageRSE"; import { RSEBlockState } from "@/lib/core/entity/rucio"; import { RSEAttributeViewModel, RSEProtocolViewModel, RSEViewModel } from "@/lib/infrastructure/data/view-model/rse"; import { useEffect, useState } from "react"; -import { fixtureRSEViewModel, mockUseComDOM } from "test/fixtures/table-fixtures"; -import { fixtureRSEProtocolViewModel, fixtureRSEAttributeViewModel } from "test/fixtures/table-fixtures"; import { getAttributes, getProtocols, getRSE } from "../../queries"; export default function Page({ params }: { params: { name: string } }) { @@ -14,19 +12,19 @@ export default function Page({ params }: { params: { name: string } }) { const [attributes, setAttributes] = useState({status: "pending"} as RSEAttributeViewModel) useEffect(() => { getRSE(params.name).then(setRSE) - }, []) + }, [params.name]) useEffect(() => { getProtocols(params.name).then(setProtocols) - }, []) + }, [params.name]) useEffect(() => { getAttributes(params.name).then(setAttributes) - }, []) + }, [params.name]) if (rse.status === "pending" || protocols.status === "pending" || attributes.status === "pending") { return } return (