Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

fix: LEAP-344: View all annotation tab is not loading #1657

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/App/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ This triggers next rerender with next annotation until all the annotations are r
class Item extends Component {
componentDidMount() {
Promise.all(this.props.annotation.objects.map(o => {
// as the image has lazy load, and the image is not being added to the viewport
// until it's loaded we need to skip the validation assuming that it's always ready,
// otherwise we'll get a blank canvas
if (o.type === 'image') return Promise.resolve();

return o.isReady
? Promise.resolve(o.isReady)
: new Promise(resolve => {
Expand Down
Loading