Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
remove useless cast
Sara Vieiradb4f7ac64278
diff --git a/apps/designer/app/routes/designer/$id.tsx b/apps/designer/app/routes/designer/$id.tsxindex 40a3a43f34..5ca0dbaddf 100644--- a/apps/designer/app/routes/designer/$id.tsx+++ b/apps/designer/app/routes/designer/$id.tsx@@ -57,11 +57,11 @@ export const action: ActionFunction = async ({ request, params }) => {);const imageInfo = ImageUpload.parse(formData.get("image"));- const info = imageInfo as ImageUpload;+const data = {- type: info.type,- name: info.name,- path: `/${path.join(folderInPublic, info.name)}`,+ type: imageInfo.type,+ name: imageInfo.name,+ path: `/${path.join(folderInPublic, imageInfo.name)}`,};db.assets.create(params.id, data);