From aa4b7bfc327f22191dc75df670610faabac354a0 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 24 Jun 2023 16:38:11 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(GenericNode):=20add=20condit?= =?UTF-8?q?ional=20rendering=20to=20documentation=20link=20to=20prevent=20?= =?UTF-8?q?empty=20href=20The=20documentation=20link=20was=20previously=20?= =?UTF-8?q?always=20rendered,=20even=20if=20the=20href=20was=20empty.=20Th?= =?UTF-8?q?is=20caused=20an=20issue=20where=20the=20link=20would=20be=20cl?= =?UTF-8?q?ickable=20but=20lead=20to=20nowhere.=20The=20fix=20adds=20a=20c?= =?UTF-8?q?onditional=20rendering=20to=20the=20link,=20so=20it=20is=20only?= =?UTF-8?q?=20rendered=20if=20the=20href=20is=20not=20empty.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/CustomNodes/GenericNode/index.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index c2c58decf..0bab24969 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -115,15 +115,17 @@ export default function GenericNode({
- - - - - + {data.node.documentation !== "" && ( + + + + + + )}