fix warning in browser console

pull/1262/head
tizah 4 years ago committed by Liana Husikyan
parent 0757c48a3a
commit 9e1fe17090
  1. 10
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -327,18 +327,18 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
<div id='staticanalysisresult' > <div id='staticanalysisresult' >
<div className="mb-4"> <div className="mb-4">
{ {
(Object.entries(warningState).map((element) => ( (Object.entries(warningState).map((element, index) => (
<> <div key={index}>
<span className="text-dark h6">{element[0]}</span> <span className="text-dark h6">{element[0]}</span>
{element[1].map(x => ( {element[1].map((x, i) => (
x.hasWarning ? ( x.hasWarning ? (
<div id={`staticAnalysisModule${element[1].warningModuleName}`}> <div id={`staticAnalysisModule${element[1].warningModuleName}`} key={i}>
<ErrorRenderer message={x.msg} opt={x.options} warningErrors={ x.warningErrors} editor={props.analysisModule}/> <ErrorRenderer message={x.msg} opt={x.options} warningErrors={ x.warningErrors} editor={props.analysisModule}/>
</div> </div>
) : null ) : null
))} ))}
</> </div>
))) )))
} }
</div> </div>

Loading…
Cancel
Save