Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace logo is not visible #9174

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Workspace logo is not visible #9174

merged 1 commit into from
Dec 20, 2024

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Dec 20, 2024

Fixing "Workspace logo is not visible in the navbar" report issue from @Weiko

@guillim guillim self-assigned this Dec 20, 2024
@guillim guillim added scope: front Issues that are affecting the frontend side only -PR: awaiting review prio: high labels Dec 20, 2024
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR fixes workspace logo visibility in the navigation drawer by removing conditional rendering logic that previously prevented the header from displaying when no logo was present.

  • Modified packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx to always render NavigationDrawerHeader regardless of logo presence
  • Added fallback empty string for logo prop to prevent undefined rendering issues
  • Improved code formatting with proper JSX parentheses structure

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

) : (
<NavigationDrawerHeader
name={title}
logo={logo || ''}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Passing empty string as fallback could cause unnecessary re-renders. Consider using null or undefined instead.

@charlesBochet charlesBochet merged commit c992be1 into main Dec 20, 2024
22 checks passed
@charlesBochet charlesBochet deleted the fix-missing-logo branch December 20, 2024 17:15
Copy link

Thanks @guillim for your contribution!
This marks your 27th PR on the repo. You're top 2% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

samyakpiya pushed a commit to samyakpiya/twenty that referenced this pull request Dec 28, 2024
Fixing "Workspace logo is not visible in the navbar" report issue from
@Weiko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-PR: awaiting review prio: high scope: front Issues that are affecting the frontend side only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants