Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix: resolve Docker build type error in setTimeout return type

Bingxi Zhao (Frank)2734f481d148
diff --git a/web/context/UnifiedChatContext.tsx b/web/context/UnifiedChatContext.tsx
index c2d2bd0fa..12bdd73aa 100644
--- a/web/context/UnifiedChatContext.tsx
+++ b/web/context/UnifiedChatContext.tsx
@@ -551,7 +551,7 @@ export function UnifiedChatProvider({ children }: { children: React.ReactNode })
dispatch({ type: "STREAM_END", key, status: "failed" });
return;
}
- const timerId = window.setTimeout(() => {
+ const timerId = setTimeout(() => {
retryTimersRef.current.delete(timerId);
dispatchToRunner(key, msg, attempt + 1);
}, 200);