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

Fix secrets list reset #202

Merged
merged 1 commit into from
Oct 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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