This commit is contained in:
Liang Ding 2022-11-22 00:58:49 +08:00
parent 14a8b1f8a4
commit 3ea5b24ea6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -40,9 +40,11 @@ import (
)
func IsFoldHeading(transactions *[]*Transaction) bool {
if 1 == len(*transactions) && 1 == len((*transactions)[0].DoOperations) {
if op := (*transactions)[0].DoOperations[0]; "foldHeading" == op.Action {
return true
for _, tx := range *transactions {
for _, op := range tx.DoOperations {
if "foldHeading" == op.Action {
return true
}
}
}
return false