Fix bug
This commit is contained in:
		
							parent
							
								
									06a7c2e138
								
							
						
					
					
						commit
						30c0f98691
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -294,7 +294,7 @@ export const pack = async (
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Populate files
 | 
						// Populate files
 | 
				
			||||||
	_note.files = Promise.all(_note.fileIds.map((fileId: mongo.ObjectID) =>
 | 
						_note.files = Promise.all((_note.fileIds || []).map((fileId: mongo.ObjectID) =>
 | 
				
			||||||
		packFile(fileId)
 | 
							packFile(fileId)
 | 
				
			||||||
	));
 | 
						));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue