Fix cover assignment
parent
dcd9744809
commit
04e9489239
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue