mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
chore: remove comments
This commit is contained in:
+1
-17
@@ -56,7 +56,6 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
|
|||||||
const environments = currentWorkspace?.environments || [];
|
const environments = currentWorkspace?.environments || [];
|
||||||
|
|
||||||
const { mutateAsync: createSecretV3 } = useCreateSecretV3();
|
const { mutateAsync: createSecretV3 } = useCreateSecretV3();
|
||||||
// const { mutateAsync: updateSecretV3 } = useUpdateSecretV3();
|
|
||||||
const { mutateAsync: createFolder } = useCreateFolder();
|
const { mutateAsync: createFolder } = useCreateFolder();
|
||||||
const { data: projectTags, isLoading: isTagsLoading } = useGetWsTags(
|
const { data: projectTags, isLoading: isTagsLoading } = useGetWsTags(
|
||||||
canReadTags ? workspaceId : ""
|
canReadTags ? workspaceId : ""
|
||||||
@@ -89,22 +88,7 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add back - need to fetch secrets by key to check for conflicts as this method broke with pagination
|
// TODO: add back ability to overwrite - need to fetch secrets by key to check for conflicts as previous method broke with pagination
|
||||||
// const isEdit = getSecretByKey(environment, key) !== undefined;
|
|
||||||
// if (isEdit) {
|
|
||||||
// return {
|
|
||||||
// ...(await updateSecretV3({
|
|
||||||
// environment,
|
|
||||||
// workspaceId,
|
|
||||||
// secretPath,
|
|
||||||
// secretKey: key,
|
|
||||||
// secretValue: value || "",
|
|
||||||
// type: SecretType.Shared,
|
|
||||||
// tagIds: tags?.map((el) => el.value)
|
|
||||||
// })),
|
|
||||||
// environment
|
|
||||||
// };
|
|
||||||
// }
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...(await createSecretV3({
|
...(await createSecretV3({
|
||||||
|
|||||||
Reference in New Issue
Block a user