tntgroup commited on
Commit
240d3e5
·
1 Parent(s): 6d566e0

fix: show type fallback when GPT prompt label is empty

Browse files
Files changed (1) hide show
  1. frontend/src/pages/ListingFree.jsx +1 -1
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>