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