mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): store hidden
state of edges in workflows
This prevents a minor visual bug where collapsed edges between collapsed nodes didn't display correctly on first load of a workflow.
This commit is contained in:
parent
5553588147
commit
620ee2875e
@ -47,6 +47,7 @@ const zWorkflowEdgeDefault = zWorkflowEdgeBase.extend({
|
||||
type: z.literal('default'),
|
||||
sourceHandle: z.string().trim().min(1),
|
||||
targetHandle: z.string().trim().min(1),
|
||||
hidden: z.boolean().optional(),
|
||||
});
|
||||
const zWorkflowEdgeCollapsed = zWorkflowEdgeBase.extend({
|
||||
type: z.literal('collapsed'),
|
||||
|
@ -66,6 +66,7 @@ export const buildWorkflowFast: BuildWorkflowFunction = ({ nodes, edges, workflo
|
||||
target: edge.target,
|
||||
sourceHandle: edge.sourceHandle,
|
||||
targetHandle: edge.targetHandle,
|
||||
hidden: edge.hidden,
|
||||
});
|
||||
} else if (edge.type === 'collapsed') {
|
||||
newWorkflow.edges.push({
|
||||
|
Loading…
Reference in New Issue
Block a user