File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/packages/media/imaging Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class UmbImagingRepository extends UmbRepositoryBase implements UmbApi {
36
36
37
37
for ( const unique of uniques ) {
38
38
const existingCrop = this . #dataStore. getCrop ( unique , imagingModel ) ;
39
- if ( existingCrop ) {
39
+ if ( existingCrop !== undefined ) {
40
40
urls . set ( unique , existingCrop ) ;
41
41
continue ;
42
42
}
@@ -48,9 +48,11 @@ export class UmbImagingRepository extends UmbRepositoryBase implements UmbApi {
48
48
continue ;
49
49
}
50
50
51
- if ( urlModels ?. [ 0 ] . url ) {
52
- const url = urlModels [ 0 ] . url ;
53
- this . #dataStore. addCrop ( unique , url , imagingModel ) ;
51
+ const url = urlModels ?. [ 0 ] . url ;
52
+
53
+ this . #dataStore. addCrop ( unique , url ?? '' , imagingModel ) ;
54
+
55
+ if ( url ) {
54
56
urls . set ( unique , url ) ;
55
57
}
56
58
}
You can’t perform that action at this time.
0 commit comments