Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ui/src/redux/repoRollback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ export const fetchDeployments = createAsyncThunk<Deployment[], void, { state: {r
throw new Error("The env is not selected.")
}

// Return the deployment history except the latest one.
const deployments = await listDeployments(namespace, name, env.name, DeploymentStatusEnum.Success, page, perPage)
return deployments
return deployments.slice(1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It returns the empty array when the array's length is under one.

}
)

Expand Down