From d88b68d2287716e663f723f46f830dc2b9043595 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 19 Jun 2022 10:48:06 -0700 Subject: index out of range fix --- db/report.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'db/report.go') 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{ -- cgit v1.2.3