fix(transaction): fix nil pointer
This commit was merged in pull request #119.
This commit is contained in:
@@ -164,7 +164,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
|
||||
if parent.ParentId == nil {
|
||||
<optgroup label={ parent.Name }>
|
||||
for _, child := range treasureChests {
|
||||
if *child.ParentId == parent.Id {
|
||||
if child.ParentId != nil && *child.ParentId == parent.Id {
|
||||
<option
|
||||
value={ child.Id.String() }
|
||||
selected?={ treasureChestId == child.Id.String() }
|
||||
|
||||
Reference in New Issue
Block a user