From 057c3cdb1bad3d39fec90f47b8e392f24201ca9c Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Tue, 20 May 2025 09:01:59 +0200 Subject: [PATCH] fix(transaction): fix nil pointer --- template/transaction/transaction.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/transaction/transaction.templ b/template/transaction/transaction.templ index b784120..ec0a959 100644 --- a/template/transaction/transaction.templ +++ b/template/transaction/transaction.templ @@ -164,7 +164,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account, if parent.ParentId == nil { for _, child := range treasureChests { - if *child.ParentId == parent.Id { + if child.ParentId != nil && *child.ParentId == parent.Id {