fix(transaction): fix nil pointer
This commit was merged in pull request #118.
This commit is contained in:
@@ -30,7 +30,7 @@ templ Transaction(items templ.Component, filter types.TransactionItemsFilter, ac
|
|||||||
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?={ filter.TreasureChestId == child.Id.String() }
|
selected?={ filter.TreasureChestId == child.Id.String() }
|
||||||
|
|||||||
Reference in New Issue
Block a user