File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments