Skip to content

Commit

Permalink
Remove nested form tag
Browse files Browse the repository at this point in the history
  • Loading branch information
negreirosleo committed Feb 20, 2024
1 parent 27b102a commit 7896b5e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@mui/joy": "^5.0.0-beta.20",
"@tanstack/react-query": "^4.35.3",
"@testing-library/user-event": "^14.5.1",
"@types/react": "18.2.23",
"@types/react": "18.2.57",
"@types/react-dom": "18.2.19",
"date-fns": "^2.30.0",
"eslint": "8.49.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/tasks/components/SaveTemplateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const SaveTemplateModal = ({ task }: SaveAsTemplateProps) => {
variant="outlined"
component="form"
action={async (formData: FormData) => {
console.log('test')
const template = await createTemplate(task, formData)
if (template.error) {
showError(template.error)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ui/SubmitButton/SubmitButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { experimental_useFormStatus as useFormStatus } from 'react-dom'
import { useFormStatus } from 'react-dom'
import { Button } from '@mui/joy'
import { PropsWithChildren } from 'react'
import { SxProps } from '@mui/joy/styles/types'
Expand Down

0 comments on commit 7896b5e

Please sign in to comment.