diff --git a/frontend-modern/src/components/Storage/DiskList.tsx b/frontend-modern/src/components/Storage/DiskList.tsx index 7cf4727d3..dad0db852 100644 --- a/frontend-modern/src/components/Storage/DiskList.tsx +++ b/frontend-modern/src/components/Storage/DiskList.tsx @@ -29,8 +29,8 @@ export const DiskList: Component = (props) => { ); } - // Sort by node and devPath - return disks.sort((a, b) => { + // Sort by node and devPath - create a copy to avoid mutating store + return [...disks].sort((a, b) => { if (a.node !== b.node) return a.node.localeCompare(b.node); return a.devPath.localeCompare(b.devPath); });