fix(builder): resolve build target url correctly and normalize custom-races catalog card

This commit is contained in:
Дмитрий committed 2026-11-03 13:57:58 +05:00
1 parent 508ebb6ad1
commit 6334402542
2 files changed
+24 -6

No files matched your search

+4 -4
View File
@@ -806,7 +806,7 @@ export function ModulesPage({
}
async function startControlledBuild(urlToBuildParam?: string) {
const target = (urlToBuildParam || (report ? report.repository_name : githubUrl)).trim();
const target = (urlToBuildParam || githubUrl || report?.repository_path || "").trim();
if (!target) return;
setBuilding(true);
setActiveTab("builds");
@@ -1957,10 +1957,10 @@ export function ModulesPage({
setActiveTab("installed");
setOpenSettings("custom-races");
}}
className="text-xs h-7 px-3"
className="text-xs h-7 px-3 bg-gradient-to-r from-amber-500 to-yellow-600 hover:from-amber-600 hover:to-yellow-700 text-black font-medium"
>
<Settings2 className="h-3.5 w-3.5 mr-1" />
{locale === "ru" ? "Настроить расы" : "Configure Races"}
<Download className="h-3.5 w-3.5 mr-1" />
{locale === "ru" ? "Установить патч" : "Install Patch"}
</Button>
) : (
<Button