diff --git a/site/source/pages/Dev/IntegrationTest.tsx b/site/source/pages/Dev/IntegrationTest.tsx index 43e6a79ed..12ae5d2e3 100644 --- a/site/source/pages/Dev/IntegrationTest.tsx +++ b/site/source/pages/Dev/IntegrationTest.tsx @@ -11,12 +11,19 @@ export default function IntegrationTest() { const integrableModuleNames = useMemo( () => Object.values(simulators) - .map((s) => 'iframePath' in s && s.iframePath) + .map((s) => + 'iframePath' in s + ? { + iframePath: s.iframePath, + private: 'private' in s ? s.private : false, + } + : false + ) .filter(((el) => Boolean(el)) as (x: T | false) => x is T), [simulators] ) const [currentModule, setCurrentModule] = useState( - integrableModuleNames[0] + integrableModuleNames[0]?.iframePath ) const [color, setColor] = useState('#005aa1') const [version, setVersion] = useState(0) @@ -38,8 +45,11 @@ export default function IntegrationTest() { <>

Quel module ?