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