mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
[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:
@@ -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
Reference in New Issue
Block a user