diff options
author | FChannel <> | 2022-06-19 10:48:06 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | d88b68d2287716e663f723f46f830dc2b9043595 (patch) | |
tree | 2eaede56bf596192f0254317bb3a3c93ea3e9632 /db | |
parent | 0a8c71360230f0439257d56d77a0755bfc030b06 (diff) |
index out of range fix
Diffstat (limited to 'db')
-rw-r--r-- | db/report.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/report.go b/db/report.go index 52e303a..2e94ee6 100644 --- a/db/report.go +++ b/db/report.go @@ -110,6 +110,10 @@ func GetLocalReport(board string) (map[string]Reports, error) { col, _ := obj.GetCollectionFromPath() + if len(col.OrderedItems) == 0 { + continue + } + OP, _ := obj.GetOP() reported[r.ID] = Reports{ |