Add TODO about the app state sorting

This commit is contained in:
Johannes Zellner
2025-04-06 12:29:32 +02:00
parent f33666b848
commit 7efa79637c
+2 -2
View File
@@ -62,9 +62,9 @@ const listColumns = {
label: 'Status',
hideMobile: true,
sort: (a, b) => {
console.log(a, b)
// TODO we need pankow fix to pass full object a,b instead of just the property
if (!a || !b) return -1;
return a.installationState < b.installationState ? -1 : (a.installationState > b.installationState ? 1 : 0)
return a.installationState < b.installationState ? -1 : (a.installationState > b.installationState ? 1 : 0);
},
},
appTitle: {