fix up code model connection a little

This commit is contained in:
Kurt Hutten IrevDev
2022-11-29 19:03:50 +11:00
parent 95f9c4c2b4
commit faf37d1b03
2 changed files with 37 additions and 34 deletions

View File

@ -104,7 +104,7 @@ function App() {
const geos: ViewerArtifact[] =
programMemory?.return?.flatMap(
({ name }: { name: string }) =>
processShownObjects(programMemory)(programMemory?.root?.[name]) ||
processShownObjects(programMemory, programMemory?.root?.[name]) ||
[]
) || []
setGeoArray(geos)
@ -263,7 +263,7 @@ function RenderViewerArtifacts({
<Line
geo={geo}
sourceRange={sourceRange}
forceHighlight={forceHighlight}
forceHighlight={forceHighlight || editorCursor}
/>
)
}
@ -273,7 +273,7 @@ function RenderViewerArtifacts({
<RenderViewerArtifacts
artifact={artifact}
key={index}
forceHighlight={editorCursor}
forceHighlight={forceHighlight || editorCursor}
/>
))}
</>