Skip to content

Guard against null user in Users table avatar cell#5566

Open
clementfavre wants to merge 1 commit into
NginxProxyManager:developfrom
clementfavre:fix/users-table-avatar-null-crash
Open

Guard against null user in Users table avatar cell#5566
clementfavre wants to merge 1 commit into
NginxProxyManager:developfrom
clementfavre:fix/users-table-avatar-null-crash

Conversation

@clementfavre
Copy link
Copy Markdown
Contributor

Why

(original issue #4838)
0ceb7d0 added the null guard to every table that renders a user avatar except the Users one. If the row owner is null, the cell still throws "Cannot read properties of null (reading 'avatar')" and breaks the page
Same one-line pattern as the other 7 tables

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • API changes
  • Performance improvement
  • Test addition or update

AI Usage

  • AI was used to write this
  • AI was used to review this

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.

1 participant