Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
hotfix: fix functions form not submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijonson committed Jul 1, 2023
1 parent 8fd99d6 commit 882ca80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"react-dom": "^18.2.0",
"react-icons": "^4.8.0",
"react-router-dom": "^6.13.0",
"uuid": "^9.0.0",
"zod": "^3.21.4"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { zodResolver } from "@mantine/form";
import { v4 as uuid } from "uuid";
import {
CallableFunctionFormContext,
CallableFunctionFormValues,
} from "../CallableFunctionFormContext";
import { persistenceCallableFunctionSchema } from "../../entities/persistenceCallableFunction";
import React from "react";
import useCallableFunctions from "../../hooks/useCallableFunctions";
import { randomId } from "@mantine/hooks";

export interface CallableFunctionFormProviderProps {
children: React.ReactNode;
Expand All @@ -26,7 +26,7 @@ const CallableFunctionFormProvider = ({
} = useCallableFunctions();
const form = CallableFunctionFormContext.useForm({
initialValues: {
id: randomId(),
id: uuid(),
displayName: "",
name: "",
},
Expand Down

0 comments on commit 882ca80

Please sign in to comment.