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.

fix issues

Andras Bacsai1048ab3aa9d0
diff --git a/packages/http-client/src/index.ts b/packages/http-client/src/index.ts
index d2ac5f4151..f757b20303 100644
--- a/packages/http-client/src/index.ts
+++ b/packages/http-client/src/index.ts
@@ -1,5 +1,5 @@
import fetch from "isomorphic-fetch";
-import type { Includes, Project } from "./index.d";
+import type { Includes, Project, Page } from "./index.d";
export const loadProject = async ({
apiUrl,
@@ -57,13 +57,13 @@ export const loadProject = async ({
if (res.ok) {
return { path: url.path, type: url.type, data: await res.json() };
}
- }),
- ]);
+ })
+ );
if (Object.keys(pagesData).length > 0) {
for (const page of pagesData) {
if (page && page.path && page.type && page.data) {
pages[page.path] = {
- ...(pages[page.path] as Record<string, unknown>),
+ ...(pages[page.path] as Record<string, Page>),
[page.type]: page.data,
breakpoints,
};