Skip to content

Conversation

naglepuff
Copy link
Collaborator

Fixes a bug that prevents data object tables from opening if the corresponding data generation has no sampled_portions key in its annotations.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a bug where data object tables fail to open when the data generation's annotations object lacks a sampled_portions key by adding optional chaining to prevent undefined property access.

  • Added optional chaining operator (?.) to safely check for sampled_portions array length
  • Prevents runtime errors when sampled_portions is undefined in annotations

@eecavanna eecavanna merged commit f303e27 into main Aug 12, 2025
2 checks passed
@eecavanna eecavanna deleted the fix-undefined-sampled-portions branch August 12, 2025 02:44
@eecavanna eecavanna changed the title Add optional chaining operator for sampled_portions Handle case where sampled_portions is null/undefined Aug 12, 2025
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.

2 participants