fix(transaction): fix nil pointer
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 5m12s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 5m28s

This commit was merged in pull request #119.
This commit is contained in:
2025-05-20 09:01:59 +02:00
parent 3c6fd72d85
commit 057c3cdb1b

View File

@@ -164,7 +164,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
if parent.ParentId == nil { if parent.ParentId == nil {
<optgroup label={ parent.Name }> <optgroup label={ parent.Name }>
for _, child := range treasureChests { for _, child := range treasureChests {
if *child.ParentId == parent.Id { if child.ParentId != nil && *child.ParentId == parent.Id {
<option <option
value={ child.Id.String() } value={ child.Id.String() }
selected?={ treasureChestId == child.Id.String() } selected?={ treasureChestId == child.Id.String() }