Fix loopUI issue 64/96664/1
authorxuegao <xg353y@intl.att.com>
Fri, 4 Oct 2019 14:11:22 +0000 (16:11 +0200)
committerxuegao <xg353y@intl.att.com>
Mon, 7 Oct 2019 08:06:42 +0000 (10:06 +0200)
Fix the issue that loopName doesn't show correctly.

Issue-ID: CLAMP-529
Change-Id: I2f7916eb300cecc311b0752df92926c747b8eb71
Signed-off-by: xuegao <xg353y@intl.att.com>
ui-react/src/LoopUI.js

index fb595de..b6dd0cb 100644 (file)
@@ -199,7 +199,8 @@ export default class LoopUI extends React.Component {
        }
 
        updateLoopCache(loopJson) {
-               this.setState({ loopCache: new LoopCache(loopJson), loopName: this.state.loopCache.getLoopName() });
+               this.setState({ loopCache: new LoopCache(loopJson) });
+               this.setState({ loopName: this.state.loopCache.getLoopName() });
                console.info(this.state.loopName+" loop loaded successfully");
        }