From c2f10792adbd5781dabcedd9a1fd5ed547b28f79 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 21 Dec 2023 06:26:21 +0100 Subject: [PATCH] Properly render the page if no input root can be found In that case {{with .InputRoot.FileSystemAccessProfileReference}} would cause a nil dereference. Split this up into two separate checks. --- cmd/bb_browser/templates/page_action.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bb_browser/templates/page_action.html b/cmd/bb_browser/templates/page_action.html index c598498..5010f76 100644 --- a/cmd/bb_browser/templates/page_action.html +++ b/cmd/bb_browser/templates/page_action.html @@ -112,7 +112,7 @@

Result

The action result of this action could not be found. {{end}} -

Input files{{if .Action}}*{{end}}

+

Input files{{if .Action}}*{{end}}

{{if .InputRoot}} {{template "view_directory.html" .InputRoot}}