From 4c647db58481c48f7ab8079de6673d7ad97065dd Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sat, 9 Sep 2023 04:29:53 -0400 Subject: [PATCH] refetch list deployments --- frontend-v2/src/components/resources/deployment/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend-v2/src/components/resources/deployment/index.tsx b/frontend-v2/src/components/resources/deployment/index.tsx index 85c77bc63..2bf47ffe1 100644 --- a/frontend-v2/src/components/resources/deployment/index.tsx +++ b/frontend-v2/src/components/resources/deployment/index.tsx @@ -31,7 +31,9 @@ import { } from "./actions"; export const useDeployment = (id?: string) => - useRead("ListDeployments", {}).data?.find((d) => d.id === id); + useRead("ListDeployments", {}, { refetchInterval: 5000 }).data?.find( + (d) => d.id === id + ); const to_bottom = (id: string) => () => document