Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
"No Documentation available" Wenn docstring leer
Browse files Browse the repository at this point in the history
  • Loading branch information
trubizki committed Jun 11, 2021
1 parent 20d50af commit 60aa274
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/src/Components/ParameterView/ParameterNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,24 @@ import PythonParameter from "../../model/PythonParameter";
type ParameterProps = {inputParameter: PythonParameter}

const ParameterNode = ({inputParameter}: ParameterProps) => {

const hasDescription = !!inputParameter.docstring;

return (
<div className="parametersList">

<span className="parameter-name">
<h4>{inputParameter?.name}</h4>
</span>
{
hasDescription &&
<DocumentationText inputText={inputParameter?.docstring}/>
}
{
!hasDescription &&
<p>No Documentation available</p>
}

<DocumentationText inputText={inputParameter?.docstring}/>
</div>
);
};
Expand Down

0 comments on commit 60aa274

Please sign in to comment.