Skip to content

Commit d1b4486

Browse files
authored
fix: LEAP-1240: Prevent resizing of already loaded images due to original dimensions in results (#6101)
1 parent bd69672 commit d1b4486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/libs/editor/src/stores/Annotation/Annotation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ export const Annotation = types
11241124

11251125
const imageEntity = tag.findImageEntity(obj.item_index ?? 0);
11261126

1127-
if (!imageEntity) return;
1127+
if (!imageEntity || imageEntity.imageLoaded) return;
11281128

11291129
imageEntity.setNaturalWidth(obj.original_width);
11301130
imageEntity.setNaturalHeight(obj.original_height);

0 commit comments

Comments
 (0)