code hightlighting using location

pull/1398/head
aniket-engg 3 years ago committed by Aniket
parent ed4bff7e05
commit 21c7dd47d3
  1. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -200,7 +200,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
let column = 0
let row = 0
let fileName = currentFile
if (item.sourceMap & item.sourceMap.length) {
if (item.sourceMap && item.sourceMap.length) {
location = {
start: item.sourceMap[0].source_mapping.start,
length: item.sourceMap[0].source_mapping.length

Loading…
Cancel
Save