Skip to content

Commit 3071a96

Browse files
committed
deduped
1 parent e60d2dc commit 3071a96

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

classes/Project/ProjectFactory.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -781,21 +781,6 @@ export default class ProjectFactory {
781781
if (annotationPages.length) {
782782
canvasItems.annotations = await this.getAnnotations({ annotations: annotationPages })
783783
}
784-
785-
const annotationPages = []
786-
await Promise.all(project.layers.map(layer => {
787-
return layer.pages.forEach(page => {
788-
if((page.target === canvas.id) && page.id.startsWith(process.env.RERUMIDPREFIX) ) {
789-
const annotationPage = {
790-
id: page.id,
791-
type: "AnnotationPage"
792-
}
793-
annotationPages.push(annotationPage)
794-
}
795-
})
796-
})
797-
)
798-
annotationPages.length > 0 && (canvasItems.annotations = await this.getAnnotations({ annotations: annotationPages }))
799784
return canvasItems
800785
} catch (error) {
801786
console.error(`Error processing layer:`, error)

0 commit comments

Comments
 (0)