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
fix: avoid error while running any patch (#3209)
Bogdan Chadkin7c36918b95bd
diff --git a/apps/builder/app/routes/rest.patch.ts b/apps/builder/app/routes/rest.patch.tsindex 151dddfe84..64095a9aed 100644--- a/apps/builder/app/routes/rest.patch.ts+++ b/apps/builder/app/routes/rest.patch.ts@@ -1,4 +1,4 @@-import { applyPatches } from "immer";+import { applyPatches, enableMapSet, enablePatches } from "immer";import type { ActionFunctionArgs } from "@remix-run/server-runtime";import type { SyncItem } from "immerhin";import { prisma } from "@webstudio-is/prisma-client";@@ -46,6 +46,9 @@ type PatchData = {};export const action = async ({ request }: ActionFunctionArgs) => {+ enableMapSet();+ enablePatches();+try {const {buildId,