Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Fix secrets list reset (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
djenriquez authored Oct 2, 2017
1 parent d9866fc commit 8787ec1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/components/Secrets/Generic/Generic.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ export default class GenericSecretBackend extends React.Component {
if(!_.isEqual(this.props.params.namespace, nextProps.params.namespace)){
this.baseUrl = `/secrets/${nextProps.params.namespace}/`;
}
if (!_.isEqual(this.props.params.splat, nextProps.params.splat)) {
// Reset
this.setState({
secretList: []
})
}
}

componentDidUpdate(prevProps, prevState) {
Expand Down Expand Up @@ -397,7 +391,6 @@ export default class GenericSecretBackend extends React.Component {
this.setState({ newSecretName: '', currentLogicalPath: `${this.state.currentLogicalPath}${key}` });
tokenHasCapabilities([this.isPathDirectory(key) ? 'list' : 'read'], `${this.state.currentLogicalPath}${key}`)
.then(() => {
console.log(`${this.baseUrl}${this.state.currentLogicalPath}`);
history.push(`${this.baseUrl}${this.state.currentLogicalPath}`);
}).catch(() => {
snackBarMessage(new Error("Access denied"));
Expand Down

0 comments on commit 8787ec1

Please sign in to comment.