diff --git a/src/qqq/components/QDynamicForm/utils/DynamicFormUtils.ts b/src/qqq/components/QDynamicForm/utils/DynamicFormUtils.ts index 600be04..6f4d4cc 100644 --- a/src/qqq/components/QDynamicForm/utils/DynamicFormUtils.ts +++ b/src/qqq/components/QDynamicForm/utils/DynamicFormUtils.ts @@ -93,27 +93,6 @@ class DynamicFormUtils } return (null); } - - public static getFormDataForUploadForm(fieldName: string, fieldLabel: string, isRequired: boolean = true) - { - const dynamicFormFields: any = {}; - const formValidations: any = {}; - - dynamicFormFields[fieldName] = { - name: fieldName, - label: fieldLabel, - isRequired: isRequired, - type: "file", - // todo invalidMsg: "Zipcode is not valid (e.g. 70000).", - }; - - if (isRequired) - { - formValidations[fieldName] = Yup.string().required(`${fieldLabel} is required.`); - } - - return {dynamicFormFields, formValidations}; - } } export default DynamicFormUtils; diff --git a/src/qqq/pages/entity-list/index.tsx b/src/qqq/pages/entity-list/index.tsx index 8507323..d049834 100644 --- a/src/qqq/pages/entity-list/index.tsx +++ b/src/qqq/pages/entity-list/index.tsx @@ -475,7 +475,7 @@ function EntityList({table}: Props): JSX.Element const bulkLoadClicked = () => { - document.location.href = `/processes/${tableName}.bulkInsert${getRecordsQueryString()}`; + document.location.href = `/processes/${tableName}.bulkInsert`; }; const bulkEditClicked = () => @@ -630,7 +630,15 @@ function EntityList({table}: Props): JSX.Element {alertContent ? ( - {alertContent} + + { + setAlertContent(null); + }} + > + {alertContent} + ) : ( ""