Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

example of lazy (#25216)

Asuka Minatod03d3518d74a
diff --git a/web/app/components/workflow/run/tracing-panel.tsx b/web/app/components/workflow/run/tracing-panel.tsx
index a6e9bf9dd48..2346b08c9e6 100644
--- a/web/app/components/workflow/run/tracing-panel.tsx
+++ b/web/app/components/workflow/run/tracing-panel.tsx
@@ -33,7 +33,7 @@ const TracingPanel: FC<TracingPanelProps> = ({
}) => {
const { t } = useTranslation()
const treeNodes = formatNodeList(list, t)
- const [collapsedNodes, setCollapsedNodes] = useState<Set<string>>(new Set())
+ const [collapsedNodes, setCollapsedNodes] = useState<Set<string>>(() => new Set())
const [hoveredParallel, setHoveredParallel] = useState<string | null>(null)
const toggleCollapse = (id: string) => {