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)_
This commit is contained in:
blessedcoolant 2024-05-24 03:16:18 +05:30 committed by GitHub
commit bcae735d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);