Skip to content

Commit

Permalink
🐛 Fix issue in credentials modal to properly update value (#1866)
Browse files Browse the repository at this point in the history
  • Loading branch information
basuabhirup authored Oct 28, 2024
1 parent 6a02942 commit e642c0c
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 e642c0c

Please sign in to comment.