From 8787ec19c8d785191bf833f9dbca6a995a6481d1 Mon Sep 17 00:00:00 2001 From: DJ Enriquez Date: Sun, 1 Oct 2017 18:28:42 -0700 Subject: [PATCH] Fix secrets list reset (#202) --- app/components/Secrets/Generic/Generic.jsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/components/Secrets/Generic/Generic.jsx b/app/components/Secrets/Generic/Generic.jsx index c1d5e38..1c915f1 100644 --- a/app/components/Secrets/Generic/Generic.jsx +++ b/app/components/Secrets/Generic/Generic.jsx @@ -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) { @@ -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"));