Skip to content

Commit

Permalink
fix(ondrejsika-theme/SessionDD): Render page for non-existing course
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Jan 2, 2024
1 parent 2e2e7b3 commit baa628c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ondrejsika-theme/layouts/SessionDD.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const SessionDD = (props) => {
db.filter("id", session.course_id);
let course = db.getOne();

if (!course) {
return <></>;
}

if (!session) {
return <></>;
}
Expand Down

2 comments on commit baa628c

@vercel
Copy link

@vercel vercel bot commented on baa628c Jan 2, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

www-trainera-cz – ./packages/trainera.cz

www-trainera-cz.vercel.app
www-trainera-cz-git-master-ondrejsika.vercel.app
www-trainera-cz-ondrejsika.vercel.app

@vercel
Copy link

@vercel vercel bot commented on baa628c Jan 2, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

www-skoleni-io – ./packages/skoleni.io

www-skoleni-io-ondrejsika.vercel.app
www-skoleni-io.vercel.app
www-skoleni-io-git-master-ondrejsika.vercel.app

Please sign in to comment.