Skip to content

Commit 3764983

Browse files
fix: FIT-720: Avoid loading all annotations in LabelStream when the user is admin and goes to previous tasks (#9326)
1 parent cabe4db commit 3764983

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/libs/editor/src/tags/object/Image/ImageEntity.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,8 @@ export const ImageEntity = types
234234
self.markAsLoaded(result.blobUrl, { addCacheRef: true });
235235
})
236236
.catch(() => {
237-
// Final failure - set error state
238-
self.error = true;
239-
self.setDownloading(false);
237+
// Final failure - set error state (async-safe via action)
238+
self.markAsFailed();
240239
});
241240
return;
242241
}

0 commit comments

Comments
 (0)