Sort truenas pools by name

This commit is contained in:
Mark Titorenkov 2024-06-26 13:28:09 +03:00 committed by GitHub
parent b03467a832
commit dcfb6463a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,9 @@ export default function Component({ service }) {
<Block label="truenas.alerts" value={t("common.number", { value: alertData.pending })} />
</Container>
{enablePools &&
poolsData.map((pool) => (
poolsData
.sort((a, b) => a.name.localeCompare(b.name))
.map((pool) => (
<Pool
key={pool.id}
name={pool.name}