Fix cover assignment
							parent
							
								
									dcd9744809
								
							
						
					
					
						commit
						04e9489239
					
				| 
						 | 
				
			
			@ -213,9 +213,7 @@ function fillWithPostData(hw: HandiWork, elements: IPostElement[]) {
 | 
			
		|||
    .filter((s) => s !== "");
 | 
			
		||||
 | 
			
		||||
  // Get the cover
 | 
			
		||||
  const cover = getPostElementByName(elements, "overview")?.content.find(
 | 
			
		||||
    (el) => el.type === "Image"
 | 
			
		||||
  ) as ILink;
 | 
			
		||||
  const cover = elements.find((e) => e.type === "Image") as ILink;
 | 
			
		||||
  hw.cover = cover?.href;
 | 
			
		||||
 | 
			
		||||
  // Fill the dates
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue