Skip to content

Commit

Permalink
fix(caricamento-excel): fix controllo formato data template excel 202…
Browse files Browse the repository at this point in the history
…40930
  • Loading branch information
sgravinadxc committed Sep 30, 2024
1 parent 3095f5b commit 71f7dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fe-piattaforma/src/hooks/useFileProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function useFileProcessor(file: File | undefined, removeFile: () => void)
header: 1,
defval: '',
blankrows: false,
raw: false
});

const mappedData: CSVRecord[] = jsonData.slice(3).map((row: any) => {
Expand Down Expand Up @@ -271,8 +272,6 @@ export function useFileProcessor(file: File | undefined, removeFile: () => void)
sanitizeFields(record);
const { AN14: _AN14, AN17: _AN17, ...filteredRecord } = record;
filteredRecord.AN3 = filteredRecord.AN3.trim();
filteredRecord.SE1 = excelSerialDateToJSDate(Number(filteredRecord.SE1));
//filteredRecord.SE2 = excelSerialTimeToHHMM(filteredRecord.SE2);
const { rejectedTypes } = generateServiceName(filteredRecord.SE3);
const errors = validateFields(
filteredRecord,
Expand Down

0 comments on commit 71f7dcb

Please sign in to comment.