mirror of
https://github.com/tale/headplane.git
synced 2026-08-31 17:28:14 +00:00
fix: update user filtering to use user name instead of user ID
This commit is contained in:
@@ -94,7 +94,7 @@ export function MachineFilters({ users, populatedNodes }: MachineFiltersProps):
|
||||
const tagOwnedExists = populatedNodes.some((n) => !n.user);
|
||||
const userOptions = [
|
||||
...(tagOwnedExists ? [{ value: "tag-owned", label: "Tag-owned" }] : []),
|
||||
...users.map((u) => ({ value: u.id, label: getUserDisplayName(u) })),
|
||||
...users.map((u) => ({ value: u.name, label: getUserDisplayName(u) })),
|
||||
];
|
||||
|
||||
const tagOptions = Array.from(new Set(populatedNodes.flatMap((n) => n.tags)))
|
||||
|
||||
Reference in New Issue
Block a user