From 25cece46f7a2ad9fdcd406b24222cc06562085a1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Mon, 13 Jan 2025 15:00:03 +0000 Subject: [PATCH] Give friendly error on empty backlog repo (#1294) Currently you get a complicated error about a nil dereference. This makes it clear what happened. --- common-theme/layouts/_default/backlog.html | 2 +- common-theme/layouts/_default/success.html | 17 +++++++++++++++-- .../partials/block/issues-list-as-blocks.html | 11 ++++++++--- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/common-theme/layouts/_default/backlog.html b/common-theme/layouts/_default/backlog.html index bccadea0e..f3d1ceb42 100644 --- a/common-theme/layouts/_default/backlog.html +++ b/common-theme/layouts/_default/backlog.html @@ -14,7 +14,7 @@ for each repo, grab the issues that match the filter */}} {{ range $repos }} - {{ $issueBlocks := partial "block/issues-list-as-blocks.html" (dict "backlog" . "backlog_filter" $backlog_filter) }} + {{ $issueBlocks := partial "block/issues-list-as-blocks.html" (dict "backlog" . "backlog_filter" $backlog_filter "path" $currentPath) }} {{ $repo := . }} {{ range $issueBlocks }}