From 6f4873b3ba11288f50d6a24622b6a980b80a037f Mon Sep 17 00:00:00 2001 From: "Michael J. Radwin" Date: Tue, 1 Oct 2024 07:30:33 -0700 Subject: [PATCH] Avoid 500 internal server error when nextRead isn't found --- views/parsha-detail.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/parsha-detail.ejs b/views/parsha-detail.ejs index 8a8842a..565f20f 100644 --- a/views/parsha-detail.ejs +++ b/views/parsha-detail.ejs @@ -26,7 +26,7 @@ ol.list-unstyled li {margin-bottom: 0.33em} <%- await include('partials/warning-1752.ejs') -%> <% } -%>

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 / <%= nextRead.event.getDate().toString().replace(/'/g, '’') %>.