Merge pull request #4547 from Infisical/fix-prevent-rotated-secrets-from-bulk-selection

fix(dashboard): prevent rotation secrets from bulk selection
This commit is contained in:
Scott Wilson
2025-09-17 17:29:35 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -731,6 +731,9 @@ export const OverviewPage = () => {
userAvailableEnvs.forEach((env) => {
secrets?.forEach((secret) => {
// bulk actions don't apply to rotation secrets (move/delete)
if (secret.isRotatedSecret) return;
if (allRowsSelectedOnPage.isChecked) {
delete newChecks[EntryType.SECRET][secret.key];
} else {

View File

@@ -570,6 +570,9 @@ const Page = () => {
const newChecks = { ...selectedSecrets };
secrets?.forEach((secret) => {
// bulk actions don't apply to rotation secrets (move/delete)
if (secret.isRotatedSecret) return;
if (allRowsSelectedOnPage.isChecked) {
delete newChecks[secret.id];
} else {