diff --git a/src/app/servers/components/server-config/ServerConfigUsersPanel.tsx b/src/app/servers/components/server-config/ServerConfigUsersPanel.tsx index fd36e09..ddb09e2 100644 --- a/src/app/servers/components/server-config/ServerConfigUsersPanel.tsx +++ b/src/app/servers/components/server-config/ServerConfigUsersPanel.tsx @@ -15,6 +15,11 @@ export default function ServerConfigUsersPanel({ snapshot, snapshotLoadError, }: ServerConfigUsersPanelProps) { + const users = [ + ...(snapshot.rootUser ? [snapshot.rootUser] : []), + ...snapshot.nonRootUsers, + ]; + return (
@@ -59,16 +64,16 @@ export default function ServerConfigUsersPanel({
- {snapshot.rootUser ? : null} - {snapshot.nonRootUsers.length > 0 ? ( + {users.length > 0 ? (
- {snapshot.nonRootUsers.map((user) => ( + {users.map((user) => ( ))}
@@ -79,7 +84,7 @@ export default function ServerConfigUsersPanel({ > {snapshotLoadError ? "User inventory could not be fetched because the live server snapshot is unavailable." - : "No non-root users were included in the current snapshot."} + : "No users were included in the current snapshot."} )}