Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Anselmo authored and Martin Anselmo committed Aug 14, 2024
1 parent ebedef8 commit 8965dd3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/ui/cypress/e2e/UploadCsvWizard.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,11 +1103,11 @@ thomas,,g,false,dna,misc_feature`,
},
{
name: "taoh",
description: "",
description: undefined,
sequence: "tom",
isRegex: false,
matchType: "",
type: ""
matchType: undefined,
type: undefined
}
]);
});
Expand Down
4 changes: 1 addition & 3 deletions packages/ui/src/FormComponents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1199,9 +1199,7 @@ export const withAbstractWrapper = (ComponentToWrap, opts = {}) => {
};

export const InputField = generateField(RenderBlueprintInput);
export const FileUploadField = generateField(renderFileUpload, {
showErrorIfUntouched: true
});
export const FileUploadField = generateField(renderFileUpload);
export const DateInputField = generateField(renderBlueprintDateInput);
export const DateRangeInputField = generateField(renderBlueprintDateRangeInput);
export const CheckboxField = generateField(renderBlueprintCheckbox, {
Expand Down
10 changes: 6 additions & 4 deletions packages/ui/src/UploadCsvWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ export const SimpleInsertDataDialog = compose(
showDoesDataLookCorrectMsg,
submitting,
userSchema,
validateAgainstSchema
validateAgainstSchema,
initialValues
}) => {
const dispatch = useDispatch();
const _reduxFormEntities = useSelector(
Expand Down Expand Up @@ -201,7 +202,7 @@ export const SimpleInsertDataDialog = compose(
}
inlineLabel
label="File Name:"
defaultValue={"manual_data_entry"}
defaultValue={initialValues?.fileName ?? "manual_data_entry"}
name="fileName"
/>
<PreviewCsvData
Expand Down Expand Up @@ -651,12 +652,13 @@ const UploadCsvWizardDialog = compose(
);
});
return {
reduxFormEntitiesArray,
finishedFiles
_reduxFormEntitiesArray: reduxFormEntitiesArray,
_finishedFiles: finishedFiles
};
}
});
const reduxFormEntitiesArray = useDeepEqualMemo(_reduxFormEntitiesArray);
console.log({ _finishedFiles });
const finishedFiles = useDeepEqualMemo(_finishedFiles);

const [hasSubmittedOuter, setSubmittedOuter] = useState();
Expand Down

0 comments on commit 8965dd3

Please sign in to comment.