Skip to content

Commit

Permalink
Check for data field before checking for access token.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-roberts authored and tekton-robot committed Apr 9, 2020
1 parent aa1c562 commit cb6e0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/Secrets/Secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export /* istanbul ignore next */ class Secrets extends Component {
});
} else {
secrets.forEach(secret => {
if (secret.data.accessToken) {
if (secret.data && secret.data.accessToken) {
secretsToUse.push(secret);
}
});
Expand Down

0 comments on commit cb6e0e1

Please sign in to comment.