Skip to content

Commit 926898a

Browse files
committed
fix: solve the bug of data quality
1 parent bec45ad commit 926898a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

frontend/src/pages/DataManagement/Detail/components/DataQuality.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
// typescript
2-
// File: `frontend/src/pages/DataManagement/Detail/components/DataQuality.tsx`
31
import React, { useMemo } from "react";
4-
// Run `npm install antd lucide-react` if your editor reports "Module is not installed"
52
import { Card, Table, Progress } from "antd";
63
import { AlertTriangle, Tags, BarChart3 } from "lucide-react";
7-
import DevelopmentInProgress from "@/components/DevelopmentInProgress";
84
import { Dataset } from "@/pages/DataManagement/dataset.model.ts";
95
import { useTranslation } from "react-i18next";
106

@@ -34,6 +30,7 @@ function randInt(min: number, max: number) {
3430
}
3531

3632
function getMockMetrics(datasetType: DatasetType, stats: FileStats) {
33+
const { t } = useTranslation();
3734
const total = Math.max(1, stats.totalFiles || 1);
3835
const corrupted = stats.corrupted || 0;
3936
const unlabeled = stats.unlabeled || 0;

0 commit comments

Comments
 (0)