Skip to content

Commit

Permalink
chore: make UI support new API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Dec 10, 2024
1 parent 940b596 commit 5fbcb34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/snapshots/Snapshots.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fbcb34

Please sign in to comment.