fix hero loading in edit

This commit is contained in:
2023-04-26 17:47:22 +10:00
parent bc642b48da
commit 24e80d7851

View File

@@ -170,8 +170,7 @@ const loadData = async () => {
}).format("dd/MM/yyyy HH:mm")
: "";
form.controls.content.value = data.article.content;
form.controls.hero.value = data.article.hero.id;
console.log(form.controls.hero.value);
form.controls.hero.value = data.article.hero;
attachments.value = (data.article.attachments || []).map(
function (attachment) {