[FIX] Crew monitor duplicating entries (second try) (#27443)

* Fixed duplicating Unknowns entries, by using index instead of name

* Rebuild TGUI
This commit is contained in:
Drsmail
2024-12-01 12:20:04 +00:00
committed by GitHub
parent 7bda12a9ce
commit 529baf4f48
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -118,10 +118,10 @@ const CrewMonitorDataView = (_properties, context) => {
<Table.Cell>Status</Table.Cell>
<Table.Cell>Location</Table.Cell>
</Table.Row>
{crew.filter(searcher).map((cm) => {
{crew.filter(searcher).map((cm, index) => {
const highlighted = highlightedNames.includes(cm.name);
return (
<Table.Row key={cm.name} bold={!!cm.is_command}>
<Table.Row key={index} bold={!!cm.is_command}>
<TableCell>
<ButtonCheckbox
checked={highlighted}
File diff suppressed because one or more lines are too long