File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ export function ImagePreview({
6767 type : img . type
6868 } ) )
6969 } ) ;
70-
70+
7171 const processed = combineBase64Images ( imagesPreview ) ;
72-
72+
7373 console . log ( '[ImagePreview] Processed images:' , {
7474 originalCount : imagesPreview ?. length || 0 ,
7575 processedCount : processed . length ,
@@ -82,7 +82,7 @@ export function ImagePreview({
8282 type : img . type
8383 } ) )
8484 } ) ;
85-
85+
8686 return processed ;
8787 } , [ imagesPreview ] ) ;
8888
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ export function combineBase64Images(
4242 } else {
4343 // Handle odd number of images (last item)
4444 if ( dataPart ) {
45- if ( dataPart . src . startsWith ( 'data:' ) && ! dataPart . src . includes ( ',' ) ) {
45+ if (
46+ dataPart . src . startsWith ( 'data:' ) &&
47+ ! dataPart . src . includes ( ',' )
48+ ) {
4649 // Incomplete base64 image, skip it
4750 } else {
4851 result . push ( dataPart ) ;
You can’t perform that action at this time.
0 commit comments