Skip to content

Commit

Permalink
Prevent template error when type is not present (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling authored Oct 10, 2023
1 parent 50e4584 commit 7be943e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</div>
<div>
{{#if publicationDate}}
{{#if type}}
<div>
<span class="label">Publication Date:</span>
{{#when type '~' 'NewsRelease' }}
Expand All @@ -20,6 +21,7 @@
{{/when}}
</div>
{{/if}}
{{/if}}
{{#if authors}}
<div>
<span class="label">TAMU Faculty Authors (Claimed):</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
{{/if}}
{{/if}}
{{#if publicationDate}}
{{#if type}}
<div>
<span class="label">Publication Date:</span>
{{#when type '~' 'NewsRelease' }}
Expand All @@ -37,6 +38,7 @@
{{/when}}
</div>
{{/if}}
{{/if}}
{{#if authors}}
<div>
<span class="label">TAMU Faculty Authors (Claimed):</span>
Expand Down

0 comments on commit 7be943e

Please sign in to comment.