Skip to content

Commit

Permalink
Merge pull request #855 from CorrelAid/853-undefined-in-mannheim-chapter
Browse files Browse the repository at this point in the history
fix #835
  • Loading branch information
jstet authored Jan 6, 2025
2 parents 120ba8c + 79a3a3d commit 4f90f4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function getTranslation(entry, currentLanguage) {
}

export function processHtml(html) {
if (typeof html === 'undefined' || html === '') {
if (typeof html === 'undefined' || html == '') {
throw new Error('HTML must be defined');
}
const $ = cheerio.load(html);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</div>
</div>
<div class="container mx-auto">
<Html source={description} options={'px-0 mb-12'} />
{#if description}
<Html source={description} options={'px-0 mb-12'} />
{/if}
{#if projects.length !== 0}
<div class=" mb-12 space-y-8 px-4">
<div class="mb-12">
Expand Down

0 comments on commit 4f90f4b

Please sign in to comment.