diff --git a/apps/web/src/components/OneLoopStudio.tsx b/apps/web/src/components/OneLoopStudio.tsx index 299ec5505..090f81f03 100644 --- a/apps/web/src/components/OneLoopStudio.tsx +++ b/apps/web/src/components/OneLoopStudio.tsx @@ -39,6 +39,7 @@ import { studioEventsEmptyMessage, studioExportFilename, studioExportToastMessage, + studioFormationSupplementalEntities, studioInvalidHandoffMessage, studioPackCitation, studioPackFormation, @@ -281,6 +282,11 @@ export default function OneLoopStudio({ packTools, ); }, [selected, packFormation.tools]); + const stackChecks = packFormation.checks; + const supplementalEntities = studioFormationSupplementalEntities( + packFormation.tools, + linkedSop?.entities, + ); useEffect(() => { setCompletedChecks([]); @@ -931,7 +937,7 @@ export default function OneLoopStudio({
- {linkedSop.entities.length === 0 && packFormation.tools.length === 0 && ( + {supplementalEntities.length === 0 && packFormation.tools.length === 0 && (

No catalogued tools in this transcript.

)} {packFormation.tools.map((tool) => ( @@ -942,14 +948,7 @@ export default function OneLoopStudio({ {tool.name} ))} - {linkedSop.entities - .filter( - (entity) => - !packFormation.tools.some( - (tool) => tool.name.toLowerCase() === entity.name.toLowerCase(), - ), - ) - .map((entity) => ( + {supplementalEntities.map((entity) => ( - {linkedSop.checklist.some((item) => item.source === 'stack') && ( + {stackChecks.length > 0 && ( <>

@@ -1025,9 +1024,7 @@ export default function OneLoopStudio({