Skip to content

fix(file-explorer): Prevent TypeError when branch contents include null rows - #4108

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/file-explorer-null-rows-ddQhwZ
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/file-explorer-null-rows-ddQhwZ

Conversation

@sentry

@sentry sentry Bot commented Sep 4, 2026

Copy link
Copy Markdown

Description

This PR addresses a TypeError: null is not an object (evaluating 'h[o.accessorKey]') that occurred in the file explorer table.

The root cause was identified as null entries being present in the rawTableRows array, which is then passed to TanStack Table. These null entries originated from the useRepoBranchContents API response, where some path content results could be null.

The fix involves filtering out these null entries from the rawTableRows array before it is used to construct the table data. This ensures that TanStack Table only receives valid row objects, preventing the TypeError when attempting to access properties on a null object.

Code Example

N/A

Notable Changes

Filtered out null entries from the rawTableRows array before passing it to TanStack Table to prevent TypeError.

Screenshots

N/A

Link to Sample Entry

N/A

Legal Boilerplate

Look, I get it. The entity doing business as "Codecov" is owned by Harness, Inc. In 2026 Harness acquired Codecov and as a result Harness is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Harness can use, modify, copy, and redistribute my contributions, under Harness's choice of terms.

Fixes GAZEBO-186J

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@sentry

sentry Bot commented Sep 4, 2026

Copy link
Copy Markdown
Author

⚠️ Seer needs additional GitHub permissions

Seer wants to keep iterating on this pull request to get CI passing, but the Sentry GitHub App installation is missing permissions it needs to read the failing checks and push a fix.

Review and accept the updated permissions to let Seer continue: https://github.com/organizations/codecov/settings/installations/86101127/permissions/update

@codecov-notifications

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #4108   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         823      823           
  Lines       15147    15148    +1     
  Branches     4387     4387           
=======================================
+ Hits        14961    14962    +1     
  Misses        179      179           
  Partials        7        7           
Files with missing lines Coverage Δ
.../FileExplorer/hooks/useRepoBranchContentsTable.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (ø)
Pages 98.43% <100.00%> (+<0.01%) ⬆️
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...08fd239. Read the comment docs.

@codecov-public-qa

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.77%. Comparing base (b8fbfc0) to head (08fd239).

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #4108   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         823      823           
  Lines       15147    15148    +1     
  Branches     4379     4379           
=======================================
+ Hits        14961    14962    +1     
  Misses        179      179           
  Partials        7        7           
Files with missing lines Coverage Δ
.../FileExplorer/hooks/useRepoBranchContentsTable.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (ø)
Pages 98.43% <100.00%> (+<0.01%) ⬆️
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...08fd239. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (b8fbfc0) to head (08fd239).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4108   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         823      823           
  Lines       15147    15148    +1     
  Branches     4387     4379    -8     
=======================================
+ Hits        14961    14962    +1     
  Misses        179      179           
  Partials        7        7           
Files with missing lines Coverage Δ
.../FileExplorer/hooks/useRepoBranchContentsTable.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (ø)
Pages 98.43% <100.00%> (+<0.01%) ⬆️
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...08fd239. Read the comment docs.

@codecov-qa

codecov-qa Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (b8fbfc0) to head (08fd239).

@@           Coverage Diff           @@
##             main    #4108   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         823      823           
  Lines       15147    15148    +1     
  Branches     4387     4387           
=======================================
+ Hits        14961    14962    +1     
  Misses        179      179           
  Partials        7        7           
Files with missing lines Coverage Δ
.../FileExplorer/hooks/useRepoBranchContentsTable.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.72% <ø> (ø)
Pages 98.43% <100.00%> (+<0.01%) ⬆️
Services 99.32% <ø> (ø)
Shared 98.94% <ø> (ø)
UI 99.02% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fbfc0...08fd239. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

0 participants