From 2dfcba865408483a728f75a0f9fc52a9853ab370 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 20 Aug 2023 23:07:18 +1000 Subject: [PATCH] fix(ui): fix graphs using old field names --- .../nodes/util/graphBuilders/addDynamicPromptsToGraph.ts | 6 +++--- .../nodes/util/graphBuilders/buildCanvasInpaintGraph.ts | 2 +- .../nodes/util/graphBuilders/buildCanvasOutpaintGraph.ts | 2 +- .../nodes/util/graphBuilders/buildCanvasSDXLInpaintGraph.ts | 2 +- .../util/graphBuilders/buildCanvasSDXLOutpaintGraph.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addDynamicPromptsToGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addDynamicPromptsToGraph.ts index ae3b31c2ad..9c71de5516 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addDynamicPromptsToGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addDynamicPromptsToGraph.ts @@ -108,13 +108,13 @@ export const addDynamicPromptsToGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: NOISE, field: 'seed' }, }); if (metadataAccumulator) { graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: METADATA_ACCUMULATOR, field: 'seed' }, }); } @@ -198,7 +198,7 @@ export const addDynamicPromptsToGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: RANGE_OF_SIZE, field: 'start' }, }); } else { diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasInpaintGraph.ts index 6b0da8e197..4f83868d67 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasInpaintGraph.ts @@ -504,7 +504,7 @@ export const buildCanvasInpaintGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: RANGE_OF_SIZE, field: 'start' }, }); } else { diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasOutpaintGraph.ts index a949c88e5f..379f864549 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasOutpaintGraph.ts @@ -845,7 +845,7 @@ export const buildCanvasOutpaintGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: RANGE_OF_SIZE, field: 'start' }, }); } else { diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLInpaintGraph.ts index ba40a70c83..12ae969f76 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLInpaintGraph.ts @@ -518,7 +518,7 @@ export const buildCanvasSDXLInpaintGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: RANGE_OF_SIZE, field: 'start' }, }); } else { diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLOutpaintGraph.ts index 1cc268c03d..5dc0093f79 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/buildCanvasSDXLOutpaintGraph.ts @@ -860,7 +860,7 @@ export const buildCanvasSDXLOutpaintGraph = ( // Connect random int to the start of the range of size so the range starts on the random first seed graph.edges.push({ - source: { node_id: RANDOM_INT, field: 'a' }, + source: { node_id: RANDOM_INT, field: 'value' }, destination: { node_id: RANGE_OF_SIZE, field: 'start' }, }); } else {