Stop ability to rename a secret to empty name from frontend

This commit is contained in:
Rhythm Bhiwani
2024-03-02 09:21:46 +05:30
parent ae2706542c
commit d12c4b7580

View File

@@ -206,7 +206,7 @@ export const SecretListView = ({
reminderRepeatDays,
reminderNote
} = modSecret;
const hasKeyChanged = oldKey !== key;
const hasKeyChanged = oldKey !== key && key;
const tagIds = tags?.map(({ id }) => id);
const oldTagIds = (orgSecret?.tags || []).map(({ id }) => id);