From 7900db3a77ffdc7064cb2bbcaa8487bb6d43ec3c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 14 Jan 2026 15:51:34 -0700 Subject: [PATCH] Capitalize correctly --- web/src/views/classification/ModelTrainingView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/views/classification/ModelTrainingView.tsx b/web/src/views/classification/ModelTrainingView.tsx index 10d52075d..81a8d613f 100644 --- a/web/src/views/classification/ModelTrainingView.tsx +++ b/web/src/views/classification/ModelTrainingView.tsx @@ -75,6 +75,7 @@ import SearchDetailDialog, { } from "@/components/overlay/detail/SearchDetailDialog"; import { SearchResult } from "@/types/search"; import { HiSparkles } from "react-icons/hi"; +import { capitalizeFirstLetter } from "@/utils/stringUtil"; type ModelTrainingViewProps = { model: CustomClassificationModelConfig; @@ -88,7 +89,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) { // title useEffect(() => { - document.title = `${model.name.toUpperCase()} - ${t("documentTitle")}`; + document.title = `${capitalizeFirstLetter(model.name)} - ${t("documentTitle")}`; }, [model.name, t]); // model state