From 52432d6512d2477ad16d46f5ab31a8f77e9f77bd Mon Sep 17 00:00:00 2001 From: xuegao Date: Fri, 4 Oct 2019 16:11:22 +0200 Subject: Fix loopUI issue Fix the issue that loopName doesn't show correctly. Issue-ID: CLAMP-529 Change-Id: I2f7916eb300cecc311b0752df92926c747b8eb71 Signed-off-by: xuegao --- ui-react/src/LoopUI.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui-react/src/LoopUI.js') diff --git a/ui-react/src/LoopUI.js b/ui-react/src/LoopUI.js index fb595ded..b6dd0cb0 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"); } -- cgit 1.2.3-korg