removed inputs when empty

This commit is contained in:
anovazzi1 2023-04-03 17:10:40 -03:00
commit 95600dca2d

View file

@ -70,7 +70,12 @@ export default function GenericNode({
.map((t: string, idx) => ( .map((t: string, idx) => (
<div key={idx}> <div key={idx}>
{idx === 0 ? ( {idx === 0 ? (
<div className="px-5 py-2 mt-2 dark:text-white text-center"> <div
className={classNames(
"px-5 py-2 mt-2 dark:text-white text-center",
Object.keys(data.node.template).filter(key => !key.startsWith('_') && data.node.template[key].show).length === 0?"hidden":""
)}
>
Inputs Inputs
</div> </div>
) : ( ) : (