Skip to content

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.

more fixes

Sara Vieira724ba193ace5
diff --git a/apps/designer/app/shared/db/project.server.ts b/apps/designer/app/shared/db/project.server.ts
index ea2b540668..3767836ae7 100644
--- a/apps/designer/app/shared/db/project.server.ts
+++ b/apps/designer/app/shared/db/project.server.ts
@@ -6,7 +6,6 @@ import {
prisma,
Prisma,
Project as BaseProject,
- Asset,
} from "@webstudio-is/prisma-client";
import * as db from ".";
import { getAssetPath } from "@webstudio-is/asset-uploader/src/helpers/get-asset-path";
@@ -98,7 +97,7 @@ export const create = async ({
}: {
userId: string;
title: string;
-}): Promise<(Project & { assets: Asset[] }) | null> => {
+}) => {
if (title.length < MIN_TITLE_LENGTH) {
throw new Error(`Minimum ${MIN_TITLE_LENGTH} characters required`);
}