From 1428f6de7b866b5debe763f9698fa0db6f64efad Mon Sep 17 00:00:00 2001 From: basuabhirup Date: Tue, 29 Oct 2024 04:07:04 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20issue=20in=20credentials?= =?UTF-8?q?=20modal=20to=20properly=20update=20credentials=20value=20in=20?= =?UTF-8?q?the=20modal=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../credentials/UpdateForgedCredentialsModalContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/forge/components/credentials/UpdateForgedCredentialsModalContent.tsx b/apps/builder/src/features/forge/components/credentials/UpdateForgedCredentialsModalContent.tsx index a2b49553b2..5855d45eda 100644 --- a/apps/builder/src/features/forge/components/credentials/UpdateForgedCredentialsModalContent.tsx +++ b/apps/builder/src/features/forge/components/credentials/UpdateForgedCredentialsModalContent.tsx @@ -35,7 +35,7 @@ export const UpdateForgedCredentialsModalContent = ({ const [isUpdating, setIsUpdating] = useState(false); - const { data: existingCredentials } = + const { data: existingCredentials, refetch: refetchCredentials } = trpc.credentials.getCredentials.useQuery( { workspaceId: workspace?.id as string, @@ -63,6 +63,7 @@ export const UpdateForgedCredentialsModalContent = ({ }, onSuccess: () => { onUpdate(); + refetchCredentials(); }, });