fix(training): pass trainingInfo directly to SegmentationTrainingCard

The parent was manually remapping availableSegBlocks → availableBlocks
before passing props, which broke after the card was updated to read
availableSegBlocks directly. Pass the full trainingInfo object instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 17:55:16 +02:00
parent a514cbca18
commit 1fd5c31fd1

View File

@@ -107,15 +107,7 @@ async function backfillFileHashes() {
<OcrTrainingCard trainingInfo={trainingInfo} />
<!-- OCR Segmentation Training -->
<SegmentationTrainingCard
trainingInfo={trainingInfo
? {
availableBlocks: trainingInfo.availableSegBlocks,
ocrServiceAvailable: trainingInfo.ocrServiceAvailable,
runs: trainingInfo.runs
}
: null}
/>
<SegmentationTrainingCard trainingInfo={trainingInfo} />
<!-- Backfill versions -->
<div class="rounded-sm border border-line bg-surface p-6 shadow-sm">