Skip to content

Commit

Permalink
Avoid 500 internal server error when nextRead isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin authored Oct 1, 2024
1 parent 1bcb221 commit 6f4873b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/parsha-detail.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ol.list-unstyled li {margin-bottom: 0.33em}
<%- await include('partials/warning-1752.ejs') -%>
<% } -%>
<p>Parashat <%=parshaName%> is the <%=parsha.ordinal%> weekly Torah portion in the annual Jewish cycle of Torah reading.
<% if (!date) { -%>
<% if (!date && nextRead) { -%>
Next read <% if (israelDiasporaDiffer) { %>in <%=locationName%><% } %> on
<a href="<%=nextRead.anchor%>-<%=nextRead.d.format('YYYYMMDD')%><%=iSuffix%>"><time datetime="<%=nextRead.d.format('YYYY-MM-DD')%>"><%=nextRead.d.format('D MMM YYYY')%></time>
/ <span class="text-nowrap"><%= nextRead.event.getDate().toString().replace(/'/g, '’') %></span></a>.
Expand Down

0 comments on commit 6f4873b

Please sign in to comment.