fix: added pattern checking for urls while creating a team (#24777)
* fix: added pattern checking for urls while creating a team * update: used slugify and replace logic * update * Fix formatting of rules in CreateANewTeamForm --------- Co-authored-by: Dhairyashil Shinde <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -147,7 +147,7 @@ export const CreateANewTeamForm = (props: CreateANewTeamFormProps) => {
|
||||
value={value}
|
||||
defaultValue={value}
|
||||
onChange={(e) => {
|
||||
newTeamFormMethods.setValue("slug", slugify(e?.target.value, true), {
|
||||
newTeamFormMethods.setValue("slug", slugify(e?.target.value, true).replace(/\./g, ""), {
|
||||
shouldTouch: true,
|
||||
});
|
||||
newTeamFormMethods.clearErrors("slug");
|
||||
|
||||
Reference in new issue
Block a user