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

Commit 1a0d07c

Browse files
author
Noah Lee
authored
Fix to except the latest deployment in the rollback (#276)
1 parent a4ffc92 commit 1a0d07c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/redux/repoRollback.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ export const fetchDeployments = createAsyncThunk<Deployment[], void, { state: {r
6969
throw new Error("The env is not selected.")
7070
}
7171

72+
// Return the deployment history except the latest one.
7273
const deployments = await listDeployments(namespace, name, env.name, DeploymentStatusEnum.Success, page, perPage)
73-
return deployments
74+
return deployments.slice(1)
7475
}
7576
)
7677

0 commit comments

Comments
 (0)