diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addControlLayers.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addControlLayers.ts index 4e42188c7d..2f254fb120 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addControlLayers.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addControlLayers.ts @@ -497,9 +497,8 @@ const isValidLayer = (layer: Layer, base: BaseModelType) => { return isValidIPAdapter(layer.ipAdapter, base); } if (isInitialImageLayer(layer)) { - if (!layer.image) { - return false; - } + const hasImage = Boolean(layer.image); + return hasImage; } if (isRegionalGuidanceLayer(layer)) { const hasTextPrompt = Boolean(layer.positivePrompt || layer.negativePrompt);