fix docs stuck at 0
This commit is contained in:
parent
d5df62934c
commit
c4f42cefbe
3 changed files with 4 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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`}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ function useSetup() {
|
|||
});
|
||||
|
||||
useWebviewListener("indexing/statusUpdate", async (data) => {
|
||||
debugger;
|
||||
dispatch(updateIndexingStatus(data));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue