From 11b82aa5565a168acf746b7546ff4c6396750990 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 28 Apr 2023 19:41:17 -0300 Subject: [PATCH] hide advanced icon if all the fields aren't advanced --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index fabc68486..880d1e7ac 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -12,7 +12,6 @@ import { NodeDataType } from "../../types/flow"; import { alertContext } from "../../contexts/alertContext"; import { PopUpContext } from "../../contexts/popUpContext"; import NodeModal from "../../modals/NodeModal"; -import { relative } from "path"; export default function GenericNode({ data, @@ -74,7 +73,11 @@ export default function GenericNode({ data.node.template[t].advanced===true + ) + ? "" + : "hidden", "w-6 h-6 dark:text-gray-500 hover:animate-spin" )} >