Sort truenas pools by name
This commit is contained in:
parent
b03467a832
commit
dcfb6463a1
@ -39,7 +39,9 @@ export default function Component({ service }) {
|
|||||||
<Block label="truenas.alerts" value={t("common.number", { value: alertData.pending })} />
|
<Block label="truenas.alerts" value={t("common.number", { value: alertData.pending })} />
|
||||||
</Container>
|
</Container>
|
||||||
{enablePools &&
|
{enablePools &&
|
||||||
poolsData.map((pool) => (
|
poolsData
|
||||||
|
.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
|
.map((pool) => (
|
||||||
<Pool
|
<Pool
|
||||||
key={pool.id}
|
key={pool.id}
|
||||||
name={pool.name}
|
name={pool.name}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user