Skip to content

Commit

Permalink
Remove outdated image rendering code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Aug 18, 2023
1 parent b52dfc4 commit 9d42da2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/common/annotation-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,7 @@ class AnnotationManager {
this._annotations.push(annotation);
}
this._annotations.sort((a, b) => (a.sortIndex > b.sortIndex) - (a.sortIndex < b.sortIndex));

this.render();

for (let annotation of annotations) {
if (['image', 'ink'].includes(annotation.type) && !annotation.image) {
annotation.image = await this.getAnnotationImage(annotation.id);
this._save(annotation, true);
this.render();
}
}
}

// Called when deletions come from the client side
Expand Down

0 comments on commit 9d42da2

Please sign in to comment.