Skip to content

Commit

Permalink
fix: null check for Los that do not have contentMd
Browse files Browse the repository at this point in the history
  • Loading branch information
edeleastar committed Sep 12, 2023
1 parent 8063feb commit 203b6a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/lib/services/models/markdown-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export function convertLabToHtml(course: Course, lab: Lab) {
}

export function convertLoToHtml(course: Course, lo: Lo) {
if (!lo.contentMd) return;
if (lo.type === "lab") {
convertLabToHtml(course, lo as Lab);
} else {
Expand Down

0 comments on commit 203b6a3

Please sign in to comment.