fix(GenericNode/index.tsx): fix indentation and formatting issues in the code for better readability
feat(GenericNode/index.tsx): add condition to only render ParameterComponent if base_classes array is not empty
This commit is contained in:
parent
fb3e4b88c5
commit
339cde462f
1 changed files with 26 additions and 24 deletions
|
|
@ -491,6 +491,7 @@ export default function GenericNode({
|
||||||
>
|
>
|
||||||
{" "}
|
{" "}
|
||||||
</div>
|
</div>
|
||||||
|
{data.node!.base_classes.length > 0 && (
|
||||||
<ParameterComponent
|
<ParameterComponent
|
||||||
key={scapedJSONStringfy({
|
key={scapedJSONStringfy({
|
||||||
baseClasses: data.node!.base_classes,
|
baseClasses: data.node!.base_classes,
|
||||||
|
|
@ -515,6 +516,7 @@ export default function GenericNode({
|
||||||
left={false}
|
left={false}
|
||||||
showNode={showNode}
|
showNode={showNode}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue