diff --git a/composables/image-upload.ts b/composables/image-upload.ts index a1388b7b5..da395fd99 100644 --- a/composables/image-upload.ts +++ b/composables/image-upload.ts @@ -31,7 +31,8 @@ export const useImageUpload = async (file: File, ctx: ImageUploadContext) => { const response = (await useBaseFetch(url, { method: 'POST', body: file, - })) as ImageUploadResponse // TODO: zod or object validation + apiVersion: 3, + })) as ImageUploadResponse // Type check to see if response has a url property and an id property if (!response?.id || typeof response.id !== 'string') { diff --git a/pages/collection/[id].vue b/pages/collection/[id].vue index 3b674e800..befb3f75a 100644 --- a/pages/collection/[id].vue +++ b/pages/collection/[id].vue @@ -159,9 +159,9 @@