We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b7b5f commit bb1274dCopy full SHA for bb1274d
src/gitops/components/project/ProjectList.tsx
@@ -288,16 +288,10 @@ export const sortData = (
288
aValue = a.metadata?.labels || {};
289
bValue = b.metadata?.labels || {};
290
break;
291
- case 'last-updated': {
292
- const aTimestamp = getLastUpdateTimestamp(a);
293
- const bTimestamp = getLastUpdateTimestamp(b);
294
- aValue = new Date(aTimestamp || 0).getTime();
295
- bValue = new Date(bTimestamp || 0).getTime();
296
- // Handle NaN values (invalid dates) - treat as 0 (epoch)
297
- if (isNaN(aValue)) aValue = 0;
298
- if (isNaN(bValue)) bValue = 0;
+ case 'last-updated':
+ aValue = getLastUpdateTimestamp(a) || '';
+ bValue = getLastUpdateTimestamp(b) || '';
299
300
- }
301
default:
302
return 0;
303
}
0 commit comments