From 60aa274fefe273fa480bfb21289b36a9404e3e76 Mon Sep 17 00:00:00 2001 From: trubizki Date: Fri, 11 Jun 2021 15:59:57 +0200 Subject: [PATCH] "No Documentation available" Wenn docstring leer --- .../src/Components/ParameterView/ParameterNode.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/src/Components/ParameterView/ParameterNode.tsx b/client/src/Components/ParameterView/ParameterNode.tsx index f70ea947e..46559a134 100644 --- a/client/src/Components/ParameterView/ParameterNode.tsx +++ b/client/src/Components/ParameterView/ParameterNode.tsx @@ -6,14 +6,24 @@ import PythonParameter from "../../model/PythonParameter"; type ParameterProps = {inputParameter: PythonParameter} const ParameterNode = ({inputParameter}: ParameterProps) => { + + const hasDescription = !!inputParameter.docstring; + return (

{inputParameter?.name}

+ { + hasDescription && + + } + { + !hasDescription && +

No Documentation available

+ } -
); };