Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Fix to except the latest deployment in the rollback #276

Merged
merged 1 commit into from
Dec 19, 2021
Merged

Conversation

noahingh
Copy link
Member

@noahingh noahingh commented Dec 19, 2021

No description provided.

@noahingh noahingh added the bug Something isn't working label Dec 19, 2021
@noahingh noahingh added this to the v0.5 milestone Dec 19, 2021
@noahingh noahingh linked an issue Dec 19, 2021 that may be closed by this pull request
@noahingh noahingh marked this pull request as ready for review December 19, 2021 01:56
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.

@noahingh noahingh merged commit 1a0d07c into main Dec 19, 2021
@noahingh noahingh deleted the fix-rollback-ui branch December 19, 2021 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix to display the deployment history except the latest one
1 participant