Fix Jupyter status hook typing
This commit is contained in:
@@ -384,12 +384,13 @@ function useJupyterWorkspaceStatus(sessionId: string | null) {
|
|||||||
setStatus(null);
|
setStatus(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const sessionIdForRequest = sessionId;
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
||||||
async function refresh() {
|
async function refresh() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`/api/claw/jupyter?session_id=${encodeURIComponent(sessionId)}`,
|
`/api/claw/jupyter?session_id=${encodeURIComponent(sessionIdForRequest)}`,
|
||||||
{ cache: "no-store" },
|
{ cache: "no-store" },
|
||||||
);
|
);
|
||||||
const payload = (await response.json().catch(() => ({}))) as
|
const payload = (await response.json().catch(() => ({}))) as
|
||||||
|
|||||||
Reference in New Issue
Block a user