From 7b4ef5926d50acc83ecde63d2d778e05e386d7ee Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:27:58 +1100 Subject: [PATCH] fix(ui): CanvasPasteBack types --- .../src/features/nodes/util/graph/buildCanvasInpaintGraph.ts | 4 ++-- .../features/nodes/util/graph/buildCanvasSDXLInpaintGraph.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasInpaintGraph.ts index 3512017313..1fced5c5c1 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasInpaintGraph.ts @@ -1,8 +1,8 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; import type { + CanvasPasteBackInvocation, CreateGradientMaskInvocation, - IAICanvasPasteBackInvocation, ImageDTO, ImageToLatentsInvocation, NoiseInvocation, @@ -391,7 +391,7 @@ export const buildCanvasInpaintGraph = ( // Paste Back graph.nodes[CANVAS_OUTPUT] = { - ...(graph.nodes[CANVAS_OUTPUT] as IAICanvasPasteBackInvocation), + ...(graph.nodes[CANVAS_OUTPUT] as CanvasPasteBackInvocation), mask: canvasMaskImage, }; diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLInpaintGraph.ts index 394837a729..d31f178d37 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLInpaintGraph.ts @@ -1,8 +1,8 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; import type { + CanvasPasteBackInvocation, CreateGradientMaskInvocation, - IAICanvasPasteBackInvocation, ImageDTO, ImageToLatentsInvocation, NoiseInvocation, @@ -401,7 +401,7 @@ export const buildCanvasSDXLInpaintGraph = ( // Paste Back graph.nodes[CANVAS_OUTPUT] = { - ...(graph.nodes[CANVAS_OUTPUT] as IAICanvasPasteBackInvocation), + ...(graph.nodes[CANVAS_OUTPUT] as CanvasPasteBackInvocation), mask: canvasMaskImage, };