fix(frontend): incorrect URLs in stats page

This commit is contained in:
2026-03-03 18:36:46 +00:00
parent d11c5acb77
commit 531ddb0467
7 changed files with 98 additions and 34 deletions

View File

@@ -3,6 +3,8 @@ import axios from "axios";
import { useNavigate, useParams } from "react-router-dom";
import StatsStyling from "../styles/stats_styling";
const API_BASE_URL = import.meta.env.VITE_BACKEND_URL
type DatasetStatusResponse = {
status?: "processing" | "complete" | "error";
status_message?: string | null;
@@ -10,7 +12,6 @@ type DatasetStatusResponse = {
};
const styles = StatsStyling;
const API_BASE_URL = "http://localhost:5000";
const DatasetStatusPage = () => {
const navigate = useNavigate();
@@ -43,7 +44,7 @@ const DatasetStatusPage = () => {
if (nextStatus === "complete") {
window.setTimeout(() => {
navigate("/stats", { replace: true });
navigate(`/dataset/${parsedDatasetId}/stats`, { replace: true });
}, 800);
}
} catch (error: unknown) {