mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-20 12:04:29 +00:00
replaceAll
This commit is contained in:
@@ -125,7 +125,7 @@ export const AddApplication = ({ projectId, projectName }: Props) => {
|
||||
placeholder="Frontend"
|
||||
{...field}
|
||||
onChange={(e) => {
|
||||
const val = e.target.value?.trim().toLowerCase().replace(" ", "-") || "";
|
||||
const val = e.target.value?.trim().toLowerCase().replaceAll(" ", "-") || "";
|
||||
form.setValue("appName", `${slug}-${val}`);
|
||||
field.onChange(val);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user