Skip to content

Commit

Permalink
Fixed #2954: Rollback should include current version as well. (#2955)
Browse files Browse the repository at this point in the history
Rollback should include the current version as well. This will reset the rollback.

Signed-off-by: Aprameya <abhat@fanatics.com>
  • Loading branch information
bhataprameya committed Jun 4, 2021
1 parent f832865 commit 91404d3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ export class ReleaseRollbackDialog extends React.Component<Props> {

onOpen = async () => {
this.isLoading = true;
const currentRevision = this.release.getRevision();
let releases = await getReleaseHistory(this.release.getName(), this.release.getNs());

releases = releases.filter(item => item.revision !== currentRevision); // remove current
releases = orderBy(releases, "revision", "desc"); // sort
this.revisions.replace(releases);
this.revision = this.revisions[0];
Expand Down

0 comments on commit 91404d3

Please sign in to comment.