File tree Expand file tree Collapse file tree
apps/api/src/instrument-records Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ export class InstrumentRecordsService {
181181 if ( arrayResult . isErr ( ) ) {
182182 throw new Error ( 'Error interpreting array computed measure' ) ;
183183 }
184- continue ;
185184 } else {
186185 data . push ( {
187186 groupId : record . subject . groupIds [ 0 ] ?? DEFAULT_GROUP_NAME ,
@@ -407,11 +406,11 @@ export class InstrumentRecordsService {
407406
408407 private expandData (
409408 data : InstrumentRecordsExport ,
410- listEntry : any ,
409+ listEntry : any [ ] ,
411410 instrument : ScalarInstrument ,
412411 record : RecordObject
413412 ) {
414- if ( Array . isArray ( listEntry ) && listEntry . length > 0 ) {
413+ if ( listEntry . length > 0 ) {
415414 for ( const objectEntry of listEntry ) {
416415 for ( const [ dataKey , dataValue ] of Object . entries ( objectEntry as { [ key : string ] : any } ) ) {
417416 data . push ( {
You can’t perform that action at this time.
0 commit comments