Skip to content

Commit

Permalink
fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jan 9, 2025
1 parent daa1b33 commit 29ec8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Replication/Replication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export default function Replication() {
setLoadingReplication(true)
try {
const res = await fetch(`/api/replication/?cluster=${selectedCluster}`)
const resJson = await res.json()
const resJson: ReplicationQueueItem[] = await res.json()
// Filter for failed items only
const failedItems = resJson.filter((item: ReplicationQueueItem) => item.error)
const failedItems = resJson.filter((item) => item.error)
setReplicationQueue(failedItems)
} catch (err) {
notification.error({
Expand Down

0 comments on commit 29ec8b7

Please sign in to comment.