File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,13 @@ export function RenderImageRefDBlob(props: {
3939
4040 // hook: async image regeneration
4141
42- const { label : imageItemLabel , origin : imageItemOrigin } = imageItem || { } ;
42+ const { /* label: imageItemLabel,*/ origin : imageItemOrigin } = imageItem || { } ;
4343 // const _recreationWidth = imageItemMetadata?.width || props.imageWidth;
4444 // const _recreationHeight = imageItemMetadata?.height || props.imageHeight;
45- const recreationPrompt = ( ( imageItemOrigin ?. ot === 'generated' ) ? imageItemOrigin . prompt : undefined ) || imageItemLabel || props . imageAltText ;
45+
46+ // NOTE: we used to fallback to the Label, but often the label is not the regeneration prompt... (e.g. "Gemini Generated Image")
47+ // const recreationPrompt = ((imageItemOrigin?.ot === 'generated') ? imageItemOrigin.prompt : undefined) || imageItemLabel || props.imageAltText;
48+ const recreationPrompt = ( imageItemOrigin ?. ot === 'generated' ) ? ( imageItemOrigin . prompt || undefined ) : undefined ;
4649
4750 const { isFetching : isRegenerating , refetch : handleImageRegenerate } = useQuery ( {
4851 enabled : false ,
You can’t perform that action at this time.
0 commit comments