image gen mess
This commit is contained in:
@@ -326,12 +326,14 @@ export default function Images() {
|
||||
.sort((a, b) => (a.position || 0) - (b.position || 0));
|
||||
|
||||
pendingInArticle.forEach((img, idx) => {
|
||||
// Position is 0-indexed in backend, but labels should be 1-indexed for users
|
||||
const displayPosition = (img.position ?? idx) + 1;
|
||||
queue.push({
|
||||
imageId: img.id || null,
|
||||
index: queueIndex++,
|
||||
label: `In-Article Image ${img.position || idx + 1}`,
|
||||
label: `In-Article Image ${displayPosition}`,
|
||||
type: 'in_article',
|
||||
position: img.position || idx + 1,
|
||||
position: img.position ?? idx,
|
||||
contentTitle: contentImages.content_title || `Content #${contentId}`,
|
||||
prompt: img.prompt || undefined,
|
||||
status: 'pending',
|
||||
|
||||
Reference in New Issue
Block a user