Skip to content

Commit

Permalink
add check for selected version
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Apr 1, 2022
1 parent 6a058e9 commit 8db4d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/components/secret-create-or-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class SecretCreateOrUpdate extends Component {
return secretData
.save()
.then(() => {
if (!this.args.canReadSecretData) {
if (!this.args.canReadSecretData && secret.selectedVersion) {
delete secret.selectedVersion.secretData;
}
if (!secretData.isError) {
Expand Down

0 comments on commit 8db4d03

Please sign in to comment.