Skip to content

Commit bcae735

Browse files
fix(ui): initial image layers always ignored (#6434)
## Summary Whoops! ## Related Issues / Discussions https://discord.com/channels/1020123559063990373/1049495067846524939/1243186572115837009 ## QA Instructions - Generate w/ initial image layer ## Merge Plan n/a ## Checklist - [x] _The PR has a short but descriptive title, suitable for a changelog_ - [ ] _Tests added / updated (if applicable)_ - [ ] _Documentation added / updated (if applicable)_
2 parents c493628 + 861f06c commit bcae735

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/generation/addControlLayers.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,8 @@ const isValidLayer = (layer: Layer, base: BaseModelType) => {
497497
return isValidIPAdapter(layer.ipAdapter, base);
498498
}
499499
if (isInitialImageLayer(layer)) {
500-
if (!layer.image) {
501-
return false;
502-
}
500+
const hasImage = Boolean(layer.image);
501+
return hasImage;
503502
}
504503
if (isRegionalGuidanceLayer(layer)) {
505504
const hasTextPrompt = Boolean(layer.positivePrompt || layer.negativePrompt);

0 commit comments

Comments
 (0)