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 findByPath
Roman Pominov24057310ffde
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsxindex 47621703c0..f77461e904 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx@@ -171,14 +171,14 @@ export const NewPageSettings = ({return path;}- if (projectUtils.pages.findByPath(pages, path) === undefined) {+ if (projectUtils.pages.findByIdOrPath(pages, path) === undefined) {return path;}let suffix = 1;while (- projectUtils.pages.findByPath(pages, `${path}${suffix}`) !== undefined+ projectUtils.pages.findByIdOrPath(pages, `${path}${suffix}`) !== undefined) {suffix++;}