Server admin: lists are displayed as word-wrapped CSV

This commit is contained in:
Simon Li
2023-04-14 18:02:05 +01:00
parent 64e7705053
commit 7b496a5b4a

View File

@@ -236,7 +236,8 @@ const ServerDashboard = (props) => {
break;
}
if (Array.isArray(value)) {
value.sort();
// cast arrays (e.g. roles, groups) to string
value = value.sort().join(", ");
}
result[key] = value;
return result;
@@ -253,6 +254,7 @@ const ServerDashboard = (props) => {
}}
valueStyle={{
padding: "4px",
whiteSpace: "unset",
}}
data={sortedData}
/>