Skip to content

Commit

Permalink
disabled temporarily project mutation in form
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcio2115 committed Sep 28, 2024
1 parent a355f06 commit 89c31d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/web/src/components/dashboard/project-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ import { Checkbox } from "../ui/checkbox";
import type { UseCreateProjectMutationResult } from "~/lib/mutations/useCreateProjectMutation";
import CategoriesSelect from "../create-project/categories-select";
import LanguagesSelect from "../create-project/language-select";
import type { UseEditProjectMutationResult } from "~/lib/mutations/useEditProjectMutation";

interface ProjectFormProps {
defaultValues: InsertProject;
mutate: UseCreateProjectMutationResult["mutate"];
mutate:
| UseCreateProjectMutationResult["mutate"]
| UseEditProjectMutationResult["mutate"];
isPending?: UseCreateProjectMutationResult["isPending"];
}

Expand All @@ -61,7 +64,8 @@ export default function ProjectForm({
const [showMore, setShowMore] = useState(false);

function onSuccess(data: TProjectForm) {
mutate(data);
console.log(data);
// mutate(data);
}

return (
Expand Down

0 comments on commit 89c31d2

Please sign in to comment.