fix: add worker button do not work

This commit is contained in:
jialin
2025-12-18 10:56:45 +08:00
parent e4bd753355
commit b524587a9a
10 changed files with 62 additions and 26 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export default function useWatchList<T = Record<string, any>>(API: string) {
const createWatchChunkRequest = useMemoizedFn(async () => {
chunkRequestRef.current?.current?.cancel?.();
try {
chunkRequestRef.current = setChunkRequest({
chunkRequestRef.current = await setChunkRequest({
url: `${watchAPI}`,
params: {},
handler: updateWatchDataListHandler