From 4e2db35d3c6a586f544ed4e0d756f18a489a629f Mon Sep 17 00:00:00 2001 From: xuegao Date: Mon, 21 Oct 2019 13:07:49 +0200 Subject: Fix issues Fix issues from the previous commit. Issue-ID: CLAMP-512 Change-Id: I84b97e9c457f34771b4c8e723dbeeb7fdfc3a18f Signed-off-by: xuegao --- pom.xml | 2 +- ui-react/src/components/loop_viewer/svg/LoopSvg.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 910dc8464..62cdee900 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ ${project.build.directory}/${ui.react.src}/coverage/lcov.info src/main/resources/** - src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/*.py + src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/kibana/*.py localhost:5000 nexus3.onap.org:10001 true diff --git a/ui-react/src/components/loop_viewer/svg/LoopSvg.js b/ui-react/src/components/loop_viewer/svg/LoopSvg.js index bb4b6d03c..06cfd238f 100644 --- a/ui-react/src/components/loop_viewer/svg/LoopSvg.js +++ b/ui-react/src/components/loop_viewer/svg/LoopSvg.js @@ -55,17 +55,14 @@ class LoopViewSvg extends React.Component { this.state.loopCache = props.loopCache; this.state.componentModalMapping = LoopComponentConverter.buildMapOfComponents(props.loopCache); this.getSvg(props.loopCache.getLoopName()); - console.log("!!!!!!!!!!!!!!!!!!!!!!!!:"+this.state.componentModalMapping); } shouldComponentUpdate(nextProps, nextState) { return this.state.svgContent !== nextState.svgContent; } - componentWillReceiveProps(newProps) { - console.log("!!!!!!!!!!!!!!!!!!!!!!!!"); + componentWillReceiveProps(newProps) { if (this.state.loopCache !== newProps.loopCache) { - console.log("!!!!!!!!!!!!!!!!!!!!!!!!changed"); this.setState({ loopCache: newProps.loopCache, componentModalMapping: LoopComponentConverter.buildMapOfComponents(newProps.loopCache) -- cgit 1.2.3-korg