Skip to content

Commit

Permalink
fix: create workspace valid (#1535)
Browse files Browse the repository at this point in the history
show alert on-change rather then on-submit
  • Loading branch information
dakshesh14 committed Jul 18, 2023
1 parent 9d891ec commit 9b423ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app/components/workspace/create-workspace-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const CreateWorkspaceForm: React.FC<Props> = ({
setValue,
getValues,
formState: { errors, isSubmitting },
} = useForm<IWorkspace>({ defaultValues });
} = useForm<IWorkspace>({ defaultValues, mode: "onChange" });

const handleCreateWorkspace = async (formData: IWorkspace) => {
await workspaceService
Expand Down

1 comment on commit 9b423ce

@vercel
Copy link

@vercel vercel bot commented on 9b423ce Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./apps/app

plane-dev-plane.vercel.app
plane-dev.vercel.app
plane-dev-git-develop-plane.vercel.app

Please sign in to comment.