File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
apps/learner-web-app/src/components/Content
mfes/content/src/components/Content Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const App = ({
6161 const isThematicPath = currentPath . includes ( '/themantic' ) ;
6262 const isPosPath = currentPath . includes ( '/pos' ) ;
6363
64- if ( ! isThematicPath && ! isPosPath ) {
64+ if ( ! isThematicPath && ! isPosPath && rt ?. program ) {
6565
6666 console . log ( 'response=======>' , rt ?. program ) ;
6767 if ( ! rt ?. program ?. includes ( localStorage . getItem ( 'userProgram' ) ) && ! rt . program . includes ( 'Open School' ) )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const isThematicPath = currentPath.includes('/themantic');
6262const isPosPath = currentPath . includes ( '/pos' ) ;
6363console . log ( 'isThematicPath=======>' , isThematicPath ) ;
6464
65- if ( ! isThematicPath && ! isPosPath ) {
65+ if ( ! isThematicPath && ! isPosPath && result ?. program ) {
6666
6767 if ( ! result ?. program ?. includes ( localStorage . getItem ( 'userProgram' ) ) && ! result . program . includes ( 'Open School' ) )
6868 {
@@ -84,7 +84,7 @@ if(!isThematicPath && !isPosPath) {
8484 'inprogress' ,
8585 'completed' ,
8686 'viewCertificate' ,
87- ] . includes ( data ?. result ?. status )
87+ ] . includes ?. ( data ?. result ?. status )
8888 ) {
8989 if ( props ?. getIfEnrolled ) {
9090 props ?. getIfEnrolled (
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default function Details(props: DetailsProps) {
7979 const currentPath = typeof window !== 'undefined' ? window . location . pathname : '' ;
8080 const isThematicPath = currentPath . includes ( '/themantic' ) ;
8181 const isPosPath = currentPath . includes ( '/pos' ) ;
82- if ( ! isThematicPath && ! isPosPath ) {
82+ if ( ! isThematicPath && ! isPosPath && resultHierarchyCourse ?. program ) {
8383 console . log ( 'resultHierarchyCourse=======>' , resultHierarchyCourse ?. program ) ;
8484 if ( ! resultHierarchyCourse ?. program ?. includes ( localStorage . getItem ( 'userProgram' ) ) && ! resultHierarchyCourse . program . includes ( 'Open School' ) )
8585 {
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ export default function Content(props: Readonly<ContentProps>) {
316316 offset : adjustedOffset ,
317317 limit : adjustedLimit ,
318318 signal : controller . signal ,
319- noPrimaryCategory : true ,
319+ primaryCategory : [ 'Course' ] ,
320320 } ) ;
321321 }
322322 else {
You can’t perform that action at this time.
0 commit comments