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: delete projects with space in the end (#3828)
Bogdan Chadkin9c87881a300b
diff --git a/apps/builder/app/dashboard/projects/project-dialogs.tsx b/apps/builder/app/dashboard/projects/project-dialogs.tsxindex 6ac54e5172..457f23dce0 100644--- a/apps/builder/app/dashboard/projects/project-dialogs.tsx+++ b/apps/builder/app/dashboard/projects/project-dialogs.tsx@@ -76,7 +76,7 @@ const DialogContent = ({onSubmit={(event) => {event.preventDefault();const formData = new FormData(event.currentTarget as HTMLFormElement);- const title = String(formData.get("title") ?? "");+ const title = String(formData.get("title") ?? "").trim();onSubmit({ title });}}>@@ -285,7 +285,10 @@ const useDeleteProject = ({};const handleChange = ({ title: currentTitle }: { title: string }) => {- setIsMatch(currentTitle.trim().toLowerCase() === title.toLowerCase());+ setIsMatch(+ currentTitle.trim().toLocaleLowerCase() ===+ title.trim().toLocaleLowerCase()+ );};return {