diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js index 0a2f6bcc946f992fcb0f96713aed7d4bab337381..c7b57b518d5f8f3ffa996244b1e75605b89aa6b9 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js @@ -78,7 +78,7 @@ class StationTestBadgeC extends Component { components.forEach((component) => { let comp_sum = summary[component]; let errors = Object.keys(comp_sum).sort(); - rows.push(<tr key={unique_id()}> + rows.push(<tr key={component}> <th>{component}</th> <td>{errors.map((id, e) => <Badge key={id} count={comp_sum[e]} label={e}/>)}</td> </tr>); @@ -89,7 +89,7 @@ class StationTestBadgeC extends Component { {this.props.station} </PopoverHeader> <PopoverBody> - <Table borderless="borderless" size="sm"> + <Table borderless size="sm"> <tbody> <tr> <th>Start:</th> @@ -174,7 +174,7 @@ class RTSMBadge extends Component { {data.observation_id} </PopoverHeader> <PopoverBody> - <Table borderless="borderless" size="sm"> + <Table borderless size="sm"> <tbody> <tr> <th>Start:</th> @@ -223,8 +223,7 @@ class SORow extends Component { renderStationTests() { let data = this.props.data; - let station_name = data.station_name; - return data.station_tests.map((testData) => <StationTestBadge key={[station_name, testData.start_datetime].join("_")} station={data.station_name} data={testData}/>); + return data.station_tests.map((testData) => <StationTestBadge key={testData.start_datetime} station={data.station_name} data={testData}/>); } renderRTSM() { diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestSummary.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestSummary.js index 638adb6aefc34e6e4e71c127fc86a4a580580345..3a345d78a2002af1bc4c57f2cceb0324cc5996a7 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestSummary.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestSummary.js @@ -31,7 +31,7 @@ class STSRow extends Component { cols = []; props.errorTypes.forEach((type) => { - cols.push(<td key={unique_id()}>{ errors[type] }</td>); + cols.push(<td key={type}>{ errors[type] }</td>); }); return ( @@ -147,7 +147,7 @@ class StationTestSummaryC extends Component { renderTableHeaders() { let th = [] this.activeErrorTypes.forEach((err) => { - th.push( <th key={unique_id()} title={err}>{ componentErrorTypes[err] ? componentErrorTypes[err] : err }</th> ); + th.push( <th key={err} title={err}>{ componentErrorTypes[err] ? componentErrorTypes[err] : err }</th> ); }); return th; } diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/utils/constants.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/utils/constants.js index c973cb3e48df9a20fab44d45a584d625665c1f5b..a452dac62841bf3466263c34359f0e574147074f 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/utils/constants.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/utils/constants.js @@ -6,7 +6,7 @@ const componentErrorTypes = { "CHECKSRV": "CK", "DOWN": "DW", "FLAT": "FL", - "HIGH_NOISE24": "HN", + "HIGH_NOISE": "HN", "JITTER": "JI", "LOW_NOISE": "LN", "MEMORY": "MY",