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:
anovazzi1 2023-11-22 21:22:24 -03:00
commit 339cde462f

View file

@ -491,6 +491,7 @@ export default function GenericNode({
>
{" "}
</div>
{data.node!.base_classes.length > 0 && (
<ParameterComponent
key={scapedJSONStringfy({
baseClasses: data.node!.base_classes,
@ -515,6 +516,7 @@ export default function GenericNode({
left={false}
showNode={showNode}
/>
)}
</>
</div>
)}