Merge branch 'main' into graph-storage-batch-query

This commit is contained in:
yangdx
2025-04-15 21:26:38 +08:00
3 changed files with 15 additions and 24 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@
<link rel="icon" type="image/svg+xml" href="logo.png" /> <link rel="icon" type="image/svg+xml" href="logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title> <title>Lightrag</title>
<script type="module" crossorigin src="/webui/assets/index-CxrKLc9_.js"></script> <script type="module" crossorigin src="/webui/assets/index-CTSf2SLr.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-IxqaC6xZ.css"> <link rel="stylesheet" crossorigin href="/webui/assets/index-IxqaC6xZ.css">
</head> </head>
<body> <body>

View File

@@ -369,15 +369,6 @@ export default function DocumentManager() {
failed: docs?.statuses?.failed?.length || 0 failed: docs?.statuses?.failed?.length || 0
} }
// Check if any status count has changed
const hasStatusCountChange = (Object.keys(newStatusCounts) as Array<keyof typeof newStatusCounts>).some(
status => newStatusCounts[status] !== prevStatusCounts.current[status]
)
// Trigger health check if changes detected and component is still mounted
if (hasStatusCountChange && isMountedRef.current) {
useBackendState.getState().check()
}
// Only update state if component is still mounted // Only update state if component is still mounted
if (isMountedRef.current) { if (isMountedRef.current) {