Spaces:
Running
Running
fix: show type fallback when GPT prompt label is empty
Browse files
frontend/src/pages/ListingFree.jsx
CHANGED
|
@@ -337,7 +337,7 @@ export default function ListingFree() {
|
|
| 337 |
<div style={{ fontSize: 11, color: "var(--green)", marginBottom: 4 }}>Generated {autoPrompts.length} prompts:</div>
|
| 338 |
{autoPrompts.map((p, i) => (
|
| 339 |
<div key={i} style={{ fontSize: 11, marginBottom: 4, padding: "4px 6px", background: "var(--cream)", borderRadius: "var(--radius-sm)" }}>
|
| 340 |
-
<b>Image {i + 1}</b> ({p.label}): {p.scene_prompt}
|
| 341 |
</div>
|
| 342 |
))}
|
| 343 |
</div>
|
|
|
|
| 337 |
<div style={{ fontSize: 11, color: "var(--green)", marginBottom: 4 }}>Generated {autoPrompts.length} prompts:</div>
|
| 338 |
{autoPrompts.map((p, i) => (
|
| 339 |
<div key={i} style={{ fontSize: 11, marginBottom: 4, padding: "4px 6px", background: "var(--cream)", borderRadius: "var(--radius-sm)" }}>
|
| 340 |
+
<b>Image {i + 1}</b> ({p.label || p.type || "auto"}): {p.scene_prompt}
|
| 341 |
</div>
|
| 342 |
))}
|
| 343 |
</div>
|