mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
replaceAll
This commit is contained in:
committed by
GitHub
parent
7f378b12ae
commit
e1ec0aee69
@@ -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