fix docs stuck at 0

This commit is contained in:
Dallin Romney 2025-02-14 21:16:55 -08:00
parent d5df62934c
commit c4f42cefbe
3 changed files with 4 additions and 2 deletions

View file

@ -157,7 +157,8 @@ export default class DocsService {
const currentStatus = this.statuses.get(doc.startUrl);
if (currentStatus) {
return currentStatus;
this.handleStatusUpdate(currentStatus);
return;
}
const sharedStatus = {

View file

@ -87,11 +87,11 @@ function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) {
const Icon = STATUS_TO_ICON[status?.status];
const showProgressPercentage = progressPercentage !== "100";
console.log("STatus for " + docConfig.title, status);
if (hasDeleted) return null;
return (
<div className="mt-2 flex w-full flex-col">
{/* {`${status.type} - ${status.id} - ${status.status} - ${status.progress} - ${status.description} - ${status.icon}`} */}
<div
className={`flex flex-row items-center justify-between gap-2 text-sm`}
>

View file

@ -242,6 +242,7 @@ function useSetup() {
});
useWebviewListener("indexing/statusUpdate", async (data) => {
debugger;
dispatch(updateIndexingStatus(data));
});