mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
Stop ability to rename a secret to empty name from frontend
This commit is contained in:
@@ -206,7 +206,7 @@ export const SecretListView = ({
|
|||||||
reminderRepeatDays,
|
reminderRepeatDays,
|
||||||
reminderNote
|
reminderNote
|
||||||
} = modSecret;
|
} = modSecret;
|
||||||
const hasKeyChanged = oldKey !== key;
|
const hasKeyChanged = oldKey !== key && key;
|
||||||
|
|
||||||
const tagIds = tags?.map(({ id }) => id);
|
const tagIds = tags?.map(({ id }) => id);
|
||||||
const oldTagIds = (orgSecret?.tags || []).map(({ id }) => id);
|
const oldTagIds = (orgSecret?.tags || []).map(({ id }) => id);
|
||||||
|
|||||||
Reference in New Issue
Block a user