Skip to content

Commit

Permalink
EPMRPP-98545 || Error occurs when Admin with no assignments opens an …
Browse files Browse the repository at this point in the history
…organization
  • Loading branch information
BlazarQSO committed Jan 24, 2025
1 parent 6b6b652 commit e13b938
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const OrganizationSidebar = ({ onClickNavBtn }) => {
const { formatMessage } = useIntl();
const userRoles = useSelector(userRolesSelector);
const sidebarExtensions = useSelector(uiExtensionSidebarComponentsSelector);
const { slug: organizationSlug } = useSelector(activeOrganizationSelector);
const organizationSlug = useSelector(activeOrganizationSelector)?.slug;
const organizationName = useSelector(activeOrganizationNameSelector);
const [isOpenOrganizationPopover, setIsOpenOrganizationPopover] = useState(false);

Expand Down Expand Up @@ -113,7 +113,7 @@ export const OrganizationSidebar = ({ onClickNavBtn }) => {
payload: { organizationSlug },
};
const titles = {
shortTitle: `${organizationName[0]}${organizationName[organizationName.length - 1]}`,
shortTitle: `${organizationName?.[0]}${organizationName?.[organizationName.length - 1]}`,
topTitle: formatMessage(messages.allOrganizations),
bottomTitle: organizationName,
level: 'organization',
Expand Down

0 comments on commit e13b938

Please sign in to comment.