From: xuegao Date: Fri, 4 Oct 2019 14:11:22 +0000 (+0200) Subject: Fix loopUI issue X-Git-Tag: 6.0.0~11^2~306 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=52432d6512d2477ad16d46f5ab31a8f77e9f77bd;p=policy%2Fclamp.git Fix loopUI issue Fix the issue that loopName doesn't show correctly. Issue-ID: CLAMP-529 Change-Id: I2f7916eb300cecc311b0752df92926c747b8eb71 Signed-off-by: xuegao --- diff --git a/ui-react/src/LoopUI.js b/ui-react/src/LoopUI.js index fb595ded0..b6dd0cb07 100644 --- a/ui-react/src/LoopUI.js +++ b/ui-react/src/LoopUI.js @@ -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"); }