We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b5f3b2 commit d14f786Copy full SHA for d14f786
1 file changed
web/src/utils/formValidator.tsx
@@ -1,10 +1,5 @@
1
import { RegisterOptions } from "react-hook-form";
2
-import {
3
- BasicGenFields,
4
- BugFixFields,
5
- DownloadFields,
6
- ListDirectoryFields,
7
-} from "../features/constants";
+import { BasicGenFields, BugFixFields } from "../features/constants";
8
9
export const validateForm = (fieldName: string) => {
10
let validationRules: RegisterOptions = {};
@@ -35,8 +30,6 @@ export const validateForm = (fieldName: string) => {
35
30
break;
36
31
case BugFixFields.VERSION:
37
32
case BugFixFields.BUG_DESCRIPTION:
38
- case ListDirectoryFields.LIST_DIRECTORY:
39
- case DownloadFields.DOWNLOAD:
40
33
case BasicGenFields.INPUT:
41
34
validationRules = {
42
required: {
0 commit comments