From 337f36602a553ecb937c041a27b1c7270571c647 Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 6 Sep 2019 18:11:51 +0200 Subject: Fix sonar issues FIx some issues reported incorrectly by sonar for the new javascript code Issue-ID: CLAMP-425 Change-Id: I485b727c3a6007c0f0f9301fcda526b028d6251f Signed-off-by: sebdet --- ui-react/src/components/loop_viewer/svg/LoopSvg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui-react/src/components/loop_viewer/svg/LoopSvg.js') diff --git a/ui-react/src/components/loop_viewer/svg/LoopSvg.js b/ui-react/src/components/loop_viewer/svg/LoopSvg.js index 1b1e2428..48f0335f 100644 --- a/ui-react/src/components/loop_viewer/svg/LoopSvg.js +++ b/ui-react/src/components/loop_viewer/svg/LoopSvg.js @@ -45,7 +45,7 @@ class LoopViewSvg extends React.Component { state = { svgContent: LoopViewSvg.emptySvg, loopCache: new LoopCache({}), - componentModalMapping: new Map([]), + componentModalMapping: new Map([]) } constructor(props) { @@ -65,7 +65,7 @@ class LoopViewSvg extends React.Component { if (this.state.loopCache !== newProps.loopCache) { this.setState({ loopCache: newProps.loopCache, - componentModalMapping: LoopComponentConverter.buildMapOfComponents(newProps.loopCache), + componentModalMapping: LoopComponentConverter.buildMapOfComponents(newProps.loopCache) }); this.getSvg(newProps.loopCache.getLoopName()); } -- cgit 1.2.3-korg