diff --git a/web/src/components/snapshots/Snapshots.jsx b/web/src/components/snapshots/Snapshots.jsx index a2607c68f3..d21f064fee 100644 --- a/web/src/components/snapshots/Snapshots.jsx +++ b/web/src/components/snapshots/Snapshots.jsx @@ -108,8 +108,12 @@ class Snapshots extends Component { } const response = await res.json(); + const snapshots = response.backups?.flatMap( + (replBackup) => replBackup?.backups + ); + this.setState({ - snapshots: response.backups?.sort((a, b) => + snapshots: snapshots?.sort((a, b) => b.startedAt ? new Date(b.startedAt) - new Date(a.startedAt) : -99999999