@@ -3,23 +3,23 @@ import { EdsDataGrid } from "@equinor/eds-data-grid-react";
33import React from "react" ;
44
55interface LabResultSimulationRunsStatusProps {
6- modelId ?: string [ ] ;
7- experimentName ?: string [ ] ;
8- simulationStatus ?: string [ ] ;
6+ modelIds ?: string [ ] ;
7+ experimentNames ?: string [ ] ;
8+ simulationStatuses ?: string [ ] ;
99}
1010
1111const LabResultSimulationRunsStatus : React . FC < LabResultSimulationRunsStatusProps > = ( {
12- modelId ,
13- experimentName ,
14- simulationStatus ,
12+ modelIds ,
13+ experimentNames ,
14+ simulationStatuses ,
1515} ) => (
1616 < div >
1717 < Accordion >
1818 < Accordion . Item >
1919 < Accordion . Header > Show calculation status</ Accordion . Header >
2020 < Accordion . Panel >
2121 { ( ( ) => {
22- const rows = createRows ( modelId , experimentName , simulationStatus ) ;
22+ const rows = createRows ( modelIds , experimentNames , simulationStatuses ) ;
2323
2424 return (
2525 < EdsDataGrid
@@ -38,18 +38,18 @@ const LabResultSimulationRunsStatus: React.FC<LabResultSimulationRunsStatusProps
3838 </ div >
3939) ;
4040
41- const createRows = ( modelId ?: string [ ] , experimentName ?: string [ ] , simulationStatus ?: string [ ] ) => {
42- if ( ! modelId ?. length && ! experimentName ?. length && ! simulationStatus ?. length ) {
41+ const createRows = ( modelIds ?: string [ ] , experimentNames ?: string [ ] , simulationStatuses ?: string [ ] ) => {
42+ if ( ! modelIds ?. length && ! experimentNames ?. length && ! simulationStatuses ?. length ) {
4343 return [ ] ;
4444 }
4545
46- const maxLength = Math . max ( modelId ?. length ?? 0 , experimentName ?. length ?? 0 , simulationStatus ?. length ?? 0 ) ;
46+ const maxLength = Math . max ( modelIds ?. length ?? 0 , experimentNames ?. length ?? 0 , simulationStatuses ?. length ?? 0 ) ;
4747
4848 return Array . from ( { length : maxLength } , ( _ , index ) => ( {
4949 id : index ,
50- modelId : modelId ?. [ index ] ?? "" ,
51- experimentName : experimentName ?. [ index ] ?? "" ,
52- status : simulationStatus ?. [ index ] ?? "" ,
50+ modelId : modelIds ?. [ index ] ?? "" ,
51+ experimentName : experimentNames ?. [ index ] ?? "" ,
52+ status : simulationStatuses ?. [ index ] ?? "" ,
5353 } ) ) ;
5454} ;
5555
0 commit comments