bug fixes

This commit is contained in:
2023-03-29 19:06:40 +10:00
parent ea3bb13661
commit 9b6e9aeb1c
2 changed files with 2 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ const handleClickAdd = async () => {
mediaItems.value.push(media); mediaItems.value.push(media);
value.value.push(media.id); value.value.push(media.id);
emits("update:modelValue", value); emits("update:modelValue", value.value);
}) })
.catch(() => { .catch(() => {
/* empty */ /* empty */
@@ -97,7 +97,7 @@ const handleClickRemove = (media_id: string) => {
mediaItems.value.splice(mediaIndex, 1); mediaItems.value.splice(mediaIndex, 1);
} }
emits("update:modelValue", value); emits("update:modelValue", value.value);
}; };
/** /**

View File

@@ -221,7 +221,6 @@ const handleSubmit = async () => {
} }
} }
console.log(attachments.value, attachments);
await api.put({ await api.put({
url: `/posts/${post_id}/attachments`, url: `/posts/${post_id}/attachments`,
body: { body: {