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 cfdd4a9 commit 5cb02a6Copy full SHA for 5cb02a6
site/src/pages/WorkspacePage/AppStatuses.tsx
@@ -47,16 +47,12 @@ export const AppStatuses: FC<AppStatusesProps> = ({
47
referenceDate,
48
}) => {
49
const [displayStatuses, setDisplayStatuses] = useState(false);
50
+ // Statuses are returned from the API sorted by created_at DESC, id DESC.
51
const allStatuses: StatusWithAppInfo[] = agent.apps.flatMap((app) =>
- app.statuses
52
- .map((status) => ({
53
- ...status,
54
- app,
55
- }))
56
- .sort(
57
- (a, b) =>
58
- new Date(b.created_at).getTime() - new Date(a.created_at).getTime(),
59
- ),
+ app.statuses.map((status) => ({
+ ...status,
+ app,
+ })),
60
);
61
62
if (allStatuses.length === 0) {
0 commit comments