mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
[bugfix] Fixed single workspace organization menu issue (#4339)
* Fixed single workspace organization menu issue * PR changes
This commit is contained in:
parent
b93b855a95
commit
1f8fc4c3f5
1 changed files with 7 additions and 5 deletions
|
|
@ -325,11 +325,13 @@ export const Organization = function Organization({ darkMode }) {
|
|||
>
|
||||
<div>{organization}</div>
|
||||
</a>
|
||||
{(!isSingleOrganization || admin) && (
|
||||
<div className="dropdown-menu end-0" data-cy="workspace-dropdown">
|
||||
{isListOrganizations ? getListOrganizations() : getOrganizationMenu()}
|
||||
</div>
|
||||
)}
|
||||
<div className="dropdown-menu end-0" data-cy="workspace-dropdown">
|
||||
{!isSingleOrganization || admin
|
||||
? isListOrganizations
|
||||
? getListOrganizations()
|
||||
: getOrganizationMenu()
|
||||
: getOrganizationMenu()}
|
||||
</div>
|
||||
</div>
|
||||
<Modal
|
||||
show={showCreateOrg}
|
||||
|
|
|
|||
Loading…
Reference in a new issue