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 {