Skip to content

fix: prevent extraction preview crash when subjects are not loaded#1026

Open
tylrx404 wants to merge 1 commit into
Charushi06:mainfrom
tylrx404:fix/extraction-preview-race-condition
Open

fix: prevent extraction preview crash when subjects are not loaded#1026
tylrx404 wants to merge 1 commit into
Charushi06:mainfrom
tylrx404:fix/extraction-preview-race-condition

Conversation

@tylrx404
Copy link
Copy Markdown

@tylrx404 tylrx404 commented Jun 2, 2026

Description

Fixes race condition in renderExtraction() when subjects have not finished loading.

Changes

  • Added safe fallback subject handling
  • Prevented undefined subject access
  • Guarded subject-dependent rendering logic
  • Added loading state for subject dropdown when subjects are unavailable

Testing

  • Tested with normal subject loading
  • Tested with network throttling (3G)
  • Verified extraction preview no longer crashes when subjects are unavailable
  • Verified existing extraction flow remains unchanged

Fixes #880

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Extraction preview crashes when subjects are not loaded yet

1 participant