Skip to content

Commit

Permalink
Bug #226562 - On the portal its not showing learning report data
Browse files Browse the repository at this point in the history
  • Loading branch information
sonaliTekdi committed Sep 23, 2024
1 parent 2377d14 commit 3b52383
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions packages/nulp_elite/src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function Header({ globalSearchQuery }) {
const [anchorElNav, setAnchorElNav] = React.useState(null);
const [anchorElUser, setAnchorElUser] = React.useState(null);
const [anchorElNotify, setAnchorElNotify] = React.useState(null);
const [anchorElPoll, setAnchorElPoll] = React.useState(null);

const [searchQuery, setSearchQuery] = useState(globalSearchQuery || "");
const _userId = util.userId();
Expand All @@ -65,18 +64,6 @@ function Header({ globalSearchQuery }) {
const [openNotification, setOpenNotification] = useState(false);
const [notificationCount, setNotificationCount] = useState(0);


const handleTooltipClose = () => {
setOpen(false);
};

const handleTooltipOpen = () => {
setOpen(true);
};

const handleSelectClick = () => {
setOpen(false);
};
const handleSubmenuToggle = () => {
setOpenSubmenu(!openSubmenu);

Expand Down Expand Up @@ -954,10 +941,13 @@ function Header({ globalSearchQuery }) {
href={routeConfig.ROUTES.LEARNING_REPORT}
underline="none"
textAlign="center"
target="_blank"
>
<MenuItem className="ml-10">

<MenuItem className="ml-10"
onClick={() => {
sessionStorage.setItem("urlPath", "learningreport");
window.open(routeConfig.ROUTES.LEARNING_REPORT, "_blank");
}}>

{t("LEARNING_REPORT")}

</MenuItem>
Expand Down

0 comments on commit 3b52383

Please sign in to comment.