From 85a8bd2d0ad474f276acc0fc3fa0cb0223b0bb16 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 3 Dec 2024 09:16:14 -0600 Subject: [PATCH] CE-1955 small bulk-load cleanups --- src/qqq/components/misc/SavedBulkLoadProfiles.tsx | 2 +- src/qqq/components/processes/BulkLoadFileMappingForm.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qqq/components/misc/SavedBulkLoadProfiles.tsx b/src/qqq/components/misc/SavedBulkLoadProfiles.tsx index eaddda8..b6137ec 100644 --- a/src/qqq/components/misc/SavedBulkLoadProfiles.tsx +++ b/src/qqq/components/misc/SavedBulkLoadProfiles.tsx @@ -435,7 +435,7 @@ function SavedBulkLoadProfiles({metaData, tableMetaData, tableStructure, current { currentSavedBulkLoadProfileRecord ? - You are using the bulk load profile:
{currentSavedBulkLoadProfileRecord.values.get("label")}.

You can manage this profile on this screen.
+ You are using the bulk load profile:
{currentSavedBulkLoadProfileRecord.values.get("label")}

You can manage this profile on this screen.
: You are not using a saved bulk load profile.

You can save your profile on this screen.
}
diff --git a/src/qqq/components/processes/BulkLoadFileMappingForm.tsx b/src/qqq/components/processes/BulkLoadFileMappingForm.tsx index 987a3e1..df94ddb 100644 --- a/src/qqq/components/processes/BulkLoadFileMappingForm.tsx +++ b/src/qqq/components/processes/BulkLoadFileMappingForm.tsx @@ -60,9 +60,9 @@ const BulkLoadFileMappingForm = forwardRef(({processValues, tableMetaData, metaD const [fieldErrors, setFieldErrors] = useState({} as { [fieldName: string]: string }); - const [suggestedBulkLoadProfile] = useState(processValues.bulkLoadProfile as BulkLoadProfile); + const [suggestedBulkLoadProfile] = useState(processValues.suggestedBulkLoadProfile as BulkLoadProfile); const [tableStructure] = useState(processValues.tableStructure as BulkLoadTableStructure); - const [bulkLoadMapping, setBulkLoadMapping] = useState(BulkLoadMapping.fromBulkLoadProfile(tableStructure, suggestedBulkLoadProfile)); + const [bulkLoadMapping, setBulkLoadMapping] = useState(BulkLoadMapping.fromBulkLoadProfile(tableStructure, processValues.bulkLoadProfile)); const [wrappedBulkLoadMapping] = useState(new Wrapper(bulkLoadMapping)); const [fileDescription] = useState(new FileDescription(processValues.headerValues, processValues.headerLetters, processValues.bodyValuesPreview));