Skip to content

Commit 893ba0c

Browse files
committed
chore: add type to long record, disable perfectionist for long record item
1 parent 96f6f4a commit 893ba0c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/web/src/hooks/useInstrumentVisualization.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function useInstrumentVisualization({ params }: UseInstrumentVisualizatio
8484
};
8585

8686
const makeLongRows = () => {
87-
const longRecord: any[] = [];
87+
const longRecord: { [key: string]: any }[] = [];
8888

8989
exportRecords.forEach((item) => {
9090
let date: Date;
@@ -101,8 +101,9 @@ export function useInstrumentVisualization({ params }: UseInstrumentVisualizatio
101101
longRecord.push({
102102
Date: toBasicISOString(date),
103103
SubjectID: params.subjectId,
104-
Value: arrItem,
105-
Variable: `${objKey}-${arrKey}`
104+
Variable: `${objKey}-${arrKey}`,
105+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, perfectionist/sort-objects
106+
Value: arrItem
106107
});
107108
});
108109
});

0 commit comments

Comments
 (0)