Skip to content

Commit 7900db3

Browse files
committed
Capitalize correctly
1 parent 2c9f7a5 commit 7900db3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/views/classification/ModelTrainingView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import SearchDetailDialog, {
7575
} from "@/components/overlay/detail/SearchDetailDialog";
7676
import { SearchResult } from "@/types/search";
7777
import { HiSparkles } from "react-icons/hi";
78+
import { capitalizeFirstLetter } from "@/utils/stringUtil";
7879

7980
type ModelTrainingViewProps = {
8081
model: CustomClassificationModelConfig;
@@ -88,7 +89,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
8889
// title
8990

9091
useEffect(() => {
91-
document.title = `${model.name.toUpperCase()} - ${t("documentTitle")}`;
92+
document.title = `${capitalizeFirstLetter(model.name)} - ${t("documentTitle")}`;
9293
}, [model.name, t]);
9394

9495
// model state

0 commit comments

Comments
 (0)