mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 10:45:58 +00:00
feat: renamed old frontend and fixed some minor bugs
This commit is contained in:
@@ -17,7 +17,12 @@ export const useGetDynamicSecretLeases = ({
|
||||
enabled = true
|
||||
}: TListDynamicSecretLeaseDTO) => {
|
||||
return useQuery({
|
||||
queryKey: dynamicSecretLeaseKeys.list({ path, environmentSlug, projectSlug, dynamicSecretName }),
|
||||
queryKey: dynamicSecretLeaseKeys.list({
|
||||
path,
|
||||
environmentSlug,
|
||||
projectSlug,
|
||||
dynamicSecretName
|
||||
}),
|
||||
enabled: Boolean(projectSlug && environmentSlug && path && dynamicSecretName && enabled),
|
||||
queryFn: async () => {
|
||||
const { data } = await apiRequest.get<{ leases: TDynamicSecretLease[] }>(
|
||||
@@ -35,5 +40,3 @@ export const useGetDynamicSecretLeases = ({
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user