File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ function App() {
155
155
} else {
156
156
setAppHistory ( ( prev ) => {
157
157
// Validate parent version
158
- if ( ! parentVersion ) {
158
+ if ( parentVersion === null ) {
159
159
toast . error (
160
160
"No parent version set. Contact support or open a Github issue."
161
161
) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default function HistoryDisplay({
30
30
} : Props ) {
31
31
return history . length === 0 ? null : (
32
32
< div className = "flex flex-col h-screen" >
33
- < h1 className = "font-bold mb-2" > History </ h1 >
33
+ < h1 className = "font-bold mb-2" > Versions </ h1 >
34
34
< ScrollArea className = "flex-1 overflow-y-auto" >
35
35
< ul className = "space-y-0 flex flex-col-reverse" >
36
36
{ history . map ( ( item , index ) => (
@@ -58,6 +58,11 @@ export default function HistoryDisplay({
58
58
< h2 className = "text-sm" > (parent: v{ item . parent + 1 } )</ h2 >
59
59
) }
60
60
</ div >
61
+ < h2 className = "text-sm" >
62
+ { item . type === "ai_edit"
63
+ ? item . inputs . prompt
64
+ : item . inputs . image_url }
65
+ </ h2 >
61
66
< h2 className = "text-sm" > v{ index + 1 } </ h2 >
62
67
</ li >
63
68
) ) }
You can’t perform that action at this time.
0 commit comments