Skip to content

Commit f224690

Browse files
Fix crash in inverter tab
1 parent 98ae255 commit f224690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/inverters/InverterList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const InverterList: FC = () => {
3030
},
3131
);
3232

33-
const sortedInverters = inverters?.sort((a, b) => a.order - b.order);
33+
const sortedInverters = inverters?.slice().sort((a, b) => a.order - b.order);
3434

3535
return (
3636
<ScrollView style={{ marginBottom: 16 }}>

0 commit comments

Comments
 (0)