fix: OCR Kombi upload race condition — openSession was resetting step to 0
openSession mapped dbStep=1 to uiStep=0 (upload), overriding handleNext's advancement to step 1. Fix: sessions always exist post-upload, so always skip past the upload step in openSession. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -57,7 +57,6 @@ function OcrKombiContent() {
|
||||
setSessionId(sid)
|
||||
loadSessions()
|
||||
openSession(sid)
|
||||
handleNext()
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -154,8 +154,8 @@ export function useKombiPipeline() {
|
||||
uiStep = dbStepToKombiV2Ui(dbStep)
|
||||
}
|
||||
|
||||
// For sessions that already have an upload, skip the upload step
|
||||
if (uiStep === 0 && dbStep >= 2) {
|
||||
// Sessions only exist after upload, so always skip the upload step
|
||||
if (uiStep === 0) {
|
||||
uiStep = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user