Skip to content

Commit

Permalink
🐛 Fix issue in credentials modal to properly update credentials value…
Browse files Browse the repository at this point in the history
… in the modal UI
  • Loading branch information
basuabhirup committed Oct 28, 2024
1 parent 96af708 commit 1428f6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -63,6 +63,7 @@ export const UpdateForgedCredentialsModalContent = ({
},
onSuccess: () => {
onUpdate();
refetchCredentials();
},
});

Expand Down

0 comments on commit 1428f6d

Please sign in to comment.