From 2674cff5633e3f040ac82f7117d92f78f6760d2a Mon Sep 17 00:00:00 2001 From: "Ricardo M." Date: Thu, 28 Nov 2024 15:59:38 +0100 Subject: [PATCH] Temp: Remove the placeholder label --- .../components/Visualization/Custom/Node/PlaceholderNode.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/Visualization/Custom/Node/PlaceholderNode.tsx b/packages/ui/src/components/Visualization/Custom/Node/PlaceholderNode.tsx index e18dbbeb0..9518919ba 100644 --- a/packages/ui/src/components/Visualization/Custom/Node/PlaceholderNode.tsx +++ b/packages/ui/src/components/Visualization/Custom/Node/PlaceholderNode.tsx @@ -23,6 +23,7 @@ export const PlaceholderNode: FunctionComponent = observer(({ e const vizNode: IVisualizationNode | undefined = element.getData()?.vizNode; const settingsAdapter = useContext(SettingsContext); const label = vizNode?.getNodeLabel(settingsAdapter.getSettings().nodeLabel); + const updatedLabel = label === 'placeholder' ? '' : label; const tooltipContent = 'Click to insert a step'; const boxRef = useRef(element.getBounds()); const labelX = (boxRef.current.width - CanvasDefaults.DEFAULT_LABEL_WIDTH) / 2; @@ -47,7 +48,7 @@ export const PlaceholderNode: FunctionComponent = observer(({ e - {label && ( + {updatedLabel && ( = observer(({ e className="placeholder-node__label" >
- {label} + {updatedLabel}
)}