fix(sessions): use session project_id and repository_id for stop/delete
Fix 404 error when stopping or deleting instances from sessions page. Was passing empty string for repoId instead of session.repository_id.
This commit is contained in:
@@ -291,8 +291,8 @@ export const SessionsPage = () => {
|
||||
onClick={() =>
|
||||
void handleStop(
|
||||
session.id,
|
||||
projects.find((p) => p.name === session.project_name)?.id ?? "",
|
||||
""
|
||||
session.project_id,
|
||||
session.repository_id
|
||||
)
|
||||
}
|
||||
type="button"
|
||||
@@ -305,8 +305,8 @@ export const SessionsPage = () => {
|
||||
onClick={() =>
|
||||
void handleDelete(
|
||||
session.id,
|
||||
projects.find((p) => p.name === session.project_name)?.id ?? "",
|
||||
""
|
||||
session.project_id,
|
||||
session.repository_id
|
||||
)
|
||||
}
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user