summaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/svg/LoopSvg.js
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-10-21 10:59:17 +0200
committerxuegao <xg353y@intl.att.com>2019-10-21 10:59:17 +0200
commitcb54edb9a9e90bf4f24d5ba4ef73a43adbbc2169 (patch)
tree72bf09406424512559e0745e9603978dc7ed8459 /ui-react/src/components/loop_viewer/svg/LoopSvg.js
parent06e255d6f26d8d52f9283178d7bee2f371d119de (diff)
Add ui tests
Add more tests for react UI. Issue-ID: CLAMP-512 Change-Id: Iab51ff107688164dfa85341a3758b8799fe60ecd Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components/loop_viewer/svg/LoopSvg.js')
-rw-r--r--ui-react/src/components/loop_viewer/svg/LoopSvg.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-react/src/components/loop_viewer/svg/LoopSvg.js b/ui-react/src/components/loop_viewer/svg/LoopSvg.js
index 48f0335f..bb4b6d03 100644
--- a/ui-react/src/components/loop_viewer/svg/LoopSvg.js
+++ b/ui-react/src/components/loop_viewer/svg/LoopSvg.js
@@ -55,6 +55,7 @@ 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) {
@@ -62,7 +63,9 @@ class LoopViewSvg extends React.Component {
}
componentWillReceiveProps(newProps) {
+ console.log("!!!!!!!!!!!!!!!!!!!!!!!!");
if (this.state.loopCache !== newProps.loopCache) {
+ console.log("!!!!!!!!!!!!!!!!!!!!!!!!changed");
this.setState({
loopCache: newProps.loopCache,
componentModalMapping: LoopComponentConverter.buildMapOfComponents(newProps.loopCache)