Skip to content

Commit d14f786

Browse files
committed
refactor(form validator): delete list and download validators
1 parent 4b5f3b2 commit d14f786

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

web/src/utils/formValidator.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { RegisterOptions } from "react-hook-form";
2-
import {
3-
BasicGenFields,
4-
BugFixFields,
5-
DownloadFields,
6-
ListDirectoryFields,
7-
} from "../features/constants";
2+
import { BasicGenFields, BugFixFields } from "../features/constants";
83

94
export const validateForm = (fieldName: string) => {
105
let validationRules: RegisterOptions = {};
@@ -35,8 +30,6 @@ export const validateForm = (fieldName: string) => {
3530
break;
3631
case BugFixFields.VERSION:
3732
case BugFixFields.BUG_DESCRIPTION:
38-
case ListDirectoryFields.LIST_DIRECTORY:
39-
case DownloadFields.DOWNLOAD:
4033
case BasicGenFields.INPUT:
4134
validationRules = {
4235
required: {

0 commit comments

Comments
 (0)