From 1869f1235e140b99e7fb71b93f5be2087ca2dcd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Wed, 26 Jan 2022 10:28:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20d'une=20erreur=20quand=20l?= =?UTF-8?q?es=20composants=20de=20doc=20ne=20sont=20pas=20affich=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/source/pages/Documentation.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/site/source/pages/Documentation.tsx b/site/source/pages/Documentation.tsx index 6f9ce4128..54c12fb8e 100644 --- a/site/source/pages/Documentation.tsx +++ b/site/source/pages/Documentation.tsx @@ -55,11 +55,11 @@ export default function MonEntrepriseRulePage() { - - - match.params.name && ( + + match.params.name && ( + - ) - } - /> - + + ) + } + /> ) @@ -223,6 +223,9 @@ function componentCSS(rules: any, props: any) { return x } const result = x(props) + if ((result ?? false) === false) { + return '' + } if (typeof result === 'string') { return result }