fix: create team form (#7896)
* fix: create team form Signed-off-by: Udit Takkar <[email protected]> * fix: change hover border Signed-off-by: Udit Takkar <[email protected]> --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
aa0e9e6a02
commit
d5c3d9d967
3 files changed
+5
-2
No files matched your search
@@ -75,6 +75,7 @@ export const CreateANewTeamForm = () => {
|
||||
if (newTeamFormMethods.formState.touchedFields["slug"] === undefined) {
|
||||
newTeamFormMethods.setValue("slug", slugify(e?.target.value));
|
||||
}
|
||||
createTeamMutation.reset();
|
||||
}}
|
||||
autoComplete="off"
|
||||
/>
|
||||
@@ -102,6 +103,7 @@ export const CreateANewTeamForm = () => {
|
||||
newTeamFormMethods.setValue("slug", slugify(e?.target.value), {
|
||||
shouldTouch: true,
|
||||
});
|
||||
createTeamMutation.reset();
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
@@ -122,6 +124,7 @@ export const CreateANewTeamForm = () => {
|
||||
buttonMsg={t("update")}
|
||||
handleAvatarChange={(newAvatar: string) => {
|
||||
newTeamFormMethods.setValue("logo", newAvatar);
|
||||
createTeamMutation.reset();
|
||||
}}
|
||||
imageSrc={value}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user