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 Vieira9ebe9cd04987
diff --git a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
index e0fa8ab959..802041fc55 100644
--- a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
@@ -19,7 +19,7 @@ const none = { TabContent: () => null };
type SidebarLeftProps = {
publish: Publish;
- assets: Array<Asset>;
+ assets?: Array<Asset>;
};
export const SidebarLeft = ({ publish, assets }: SidebarLeftProps) => {
@@ -78,7 +78,7 @@ export const SidebarLeft = ({ publish, assets }: SidebarLeftProps) => {
}}
>
<TabContent
- assets={assets}
+ assets={assets || []}
publish={publish}
onSetActiveTab={setActiveTab}
/>
diff --git a/packages/prisma-client/src/types.ts b/packages/prisma-client/src/types.ts
index 74d6633822..67310d3780 100644
--- a/packages/prisma-client/src/types.ts
+++ b/packages/prisma-client/src/types.ts
@@ -3,8 +3,8 @@ export { Location } from "@prisma/client";
export type { InstanceProps, User, Breakpoints } from "@prisma/client";
export type Asset = DbAsset & {
- path: string;
+ path?: string;
status?: "uploading" | "uploaded";
};
-export type Project = BaseProject & { assets?: DbAsset[] };
+export type Project = BaseProject & { assets?: Asset[] };
export type { DbAsset };