change key to ref (#19465)

This commit is contained in:
Kashargul
2026-05-16 17:58:17 +02:00
committed by GitHub
parent e83d6ca931
commit 3ee224c2e1
2 changed files with 5 additions and 8 deletions
@@ -45,11 +45,11 @@ export const AnomalyScanner = (props) => {
return (
<Window width={400} height={325} theme={theme}>
<Window.Content>
<Window.Content scrollable>
{anomaly_name ? (
<Stack vertical fill>
<Stack.Item grow>
<Section title={capitalizeAll(anomaly_name)} fill scrollable>
<Section title={capitalizeAll(anomaly_name)} fill>
<LabeledList>
<LabeledList.Item label="Current severity">
{severity}%
@@ -70,7 +70,7 @@ export const AnomalyScanner = (props) => {
</Section>
</Stack.Item>
<Stack.Item grow>
<Section title="Particle Reaction Analysis" fill scrollable>
<Section title="Particle Reaction Analysis" fill>
<LabeledList>
<LabeledList.Item label="Danger Type" color="red">
{danger_type}
+2 -5
View File
@@ -180,11 +180,8 @@ export const Gps = (props) => {
<Table.Cell collapsing>Coordinates</Table.Cell>
</Table.Row>
{signals.length ? (
signals.filter(searchName).map((signal, index) => (
<Table.Row
key={signal.gpsTag + signal.coords + index}
className="candystripe"
>
signals.filter(searchName).map((signal) => (
<Table.Row key={signal.ref} className="candystripe">
<Table.Cell bold color="label">
{signal.gpsTag}
</Table.Cell>