fix(frontend): missing "fetching" status from auto-scrape
When auto-scraping, the dataset status page would say "Dataset Ready" when it was still fetching.
This commit is contained in:
@@ -6,7 +6,7 @@ import StatsStyling from "../styles/stats_styling";
|
|||||||
const API_BASE_URL = import.meta.env.VITE_BACKEND_URL
|
const API_BASE_URL = import.meta.env.VITE_BACKEND_URL
|
||||||
|
|
||||||
type DatasetStatusResponse = {
|
type DatasetStatusResponse = {
|
||||||
status?: "processing" | "complete" | "error";
|
status?: "fetching" | "processing" | "complete" | "error";
|
||||||
status_message?: string | null;
|
status_message?: string | null;
|
||||||
completed_at?: string | null;
|
completed_at?: string | null;
|
||||||
};
|
};
|
||||||
@@ -73,7 +73,7 @@ const DatasetStatusPage = () => {
|
|||||||
};
|
};
|
||||||
}, [navigate, parsedDatasetId, status]);
|
}, [navigate, parsedDatasetId, status]);
|
||||||
|
|
||||||
const isProcessing = loading || status === "processing";
|
const isProcessing = loading || status === "fetching" || status === "processing";
|
||||||
const isError = status === "error";
|
const isError = status === "error";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user