Skip to content

Commit

Permalink
remove unused function (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Oct 29, 2021
1 parent 09147a1 commit 9ce1d4e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions web/src/components/troubleshoot/AnalyzerInsights.jsx
Expand Up @@ -35,7 +35,6 @@ export class AnalyzerInsights extends React.Component {
}

componentDidMount() {
this.testApi();
let isError, isWarn;
if (this.props.insights) {
isError = this.props.insights.some(i => i.severity === "error");
Expand All @@ -52,22 +51,6 @@ export class AnalyzerInsights extends React.Component {
this.checkBundleStatus();
}

testApi = async () => {
this.setState({ sendingBundle: true, sendingBundleErrMsg: "", downloadBundleErrMsg: "" });
fetch(`${window.env.API_ENDPOINT}/troubleshoot/app/qakots/supportbundle/2041y5f3xzi5ewauoaiqogyccme/pod?podNamespace=default&podName=sqs-7449b544fc-mw4dx`, {
method: "GET",
headers: {
"Authorization": Utilities.getToken(),
}
})
.then(async (result) => {
console.log(result)
})
.catch(err => {
console.log(err);
})
}

checkBundleStatus = () => {
const { status, refetchSupportBundle, insights } = this.props;
if (status === "uploaded" || status === "analyzing") {
Expand Down

0 comments on commit 9ce1d4e

Please sign in to comment.