diff --git a/client/src/pages/platform/workflow-editor/WorkflowEditorLayout.tsx b/client/src/pages/platform/workflow-editor/WorkflowEditorLayout.tsx
index f1dfa9e319..ec2b850578 100644
--- a/client/src/pages/platform/workflow-editor/WorkflowEditorLayout.tsx
+++ b/client/src/pages/platform/workflow-editor/WorkflowEditorLayout.tsx
@@ -177,37 +177,37 @@ const WorkflowEditorLayout = ({includeComponents, runDisabled, showWorkflowInput
- {currentComponent && (
- <>
-
+ <>
+
+
+
+ }
+ invalidateWorkflowQueries={invalidateWorkflowQueries!}
+ previousComponentDefinitions={previousComponentDefinitions}
+ updateWorkflowMutation={updateWorkflowMutation!}
+ workflowNodeOutputs={filteredWorkflowNodeOutputs ?? []}
+ />
- {dataPillPanelOpen && (
- }>
-
-
- )}
- >
- )}
-
-
-
-
+ {dataPillPanelOpen && (
+ }>
+
+
+ )}
+ >
)}
diff --git a/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx b/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx
index 6629669e88..b2888c563e 100644
--- a/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx
+++ b/client/src/pages/platform/workflow-editor/components/WorkflowNodeDetailsPanel.tsx
@@ -64,7 +64,7 @@ import {
import {TooltipPortal} from '@radix-ui/react-tooltip';
import {useQueryClient} from '@tanstack/react-query';
import {InfoIcon, XIcon} from 'lucide-react';
-import {useCallback, useEffect, useMemo, useRef, useState} from 'react';
+import {ReactNode, useCallback, useEffect, useMemo, useRef, useState} from 'react';
import isEqual from 'react-fast-compare';
import InlineSVG from 'react-inlinesvg';
import {twMerge} from 'tailwind-merge';
@@ -106,6 +106,7 @@ const TABS: Array<{label: string; name: TabNameType}> = [
interface WorkflowNodeDetailsPanelProps {
className?: string;
+ closeButton?: ReactNode;
invalidateWorkflowQueries: () => void;
previousComponentDefinitions: Array;
updateWorkflowMutation: UpdateWorkflowMutationType;
@@ -114,6 +115,7 @@ interface WorkflowNodeDetailsPanelProps {
const WorkflowNodeDetailsPanel = ({
className,
+ closeButton,
invalidateWorkflowQueries,
previousComponentDefinitions,
updateWorkflowMutation,
@@ -1155,13 +1157,17 @@ const WorkflowNodeDetailsPanel = ({
)}
-
+ {closeButton ? (
+ closeButton
+ ) : (
+
+ )}
diff --git a/client/src/pages/platform/workflow-editor/hooks/useNodeClick.ts b/client/src/pages/platform/workflow-editor/hooks/useNodeClick.ts
index 3af893cdda..005012096d 100644
--- a/client/src/pages/platform/workflow-editor/hooks/useNodeClick.ts
+++ b/client/src/pages/platform/workflow-editor/hooks/useNodeClick.ts
@@ -46,12 +46,6 @@ export default function useNodeClick(data: NodeDataType, id: NodeProps['id'], ac
if (!!data.clusterRoot && !clusterElementsCanvasOpen) {
setClusterElementsCanvasOpen(true);
-
- setCurrentComponent(undefined);
-
- setWorkflowNodeDetailsPanelOpen(false);
-
- return;
}
setWorkflowNodeDetailsPanelOpen(true);