Fix cover assignment

pull/83/head
MillenniumEarl 2021-03-21 22:01:31 +01:00
parent dcd9744809
commit 04e9489239
1 changed files with 1 additions and 3 deletions

View File

@ -213,9 +213,7 @@ function fillWithPostData(hw: HandiWork, elements: IPostElement[]) {
.filter((s) => s !== ""); .filter((s) => s !== "");
// Get the cover // Get the cover
const cover = getPostElementByName(elements, "overview")?.content.find( const cover = elements.find((e) => e.type === "Image") as ILink;
(el) => el.type === "Image"
) as ILink;
hw.cover = cover?.href; hw.cover = cover?.href;
// Fill the dates // Fill the dates