fix: review comments

This commit is contained in:
Piyush Gupta
2025-11-26 18:48:41 +05:30
parent f031339d83
commit 448d8186ec

View File

@@ -421,12 +421,11 @@ export const fnSecretBulkDelete = async ({
);
const changes = deletedSecrets
.filter(({ type }) => type === SecretType.Shared)
.filter(({ type, id }) => type === SecretType.Shared && secretVersions[id])
.map(({ id }) => ({
type: CommitType.DELETE,
secretVersionId: secretVersions[id]?.id
}))
.filter((el) => el.secretVersionId);
}));
if (changes.length > 0) {
if (commitChanges) {