Use publicreport card component on planning page

This commit is contained in:
Eli Ribble 2026-03-24 08:35:31 -07:00
parent 0289bf5756
commit 69eabe4e85
No known key found for this signature in database
4 changed files with 33 additions and 8 deletions

View file

@ -229,7 +229,12 @@ func SignalList(ctx context.Context, user User, limit int) ([]*Signal, error) {
row.Report = nil
} else if row.Report.ID != 0 {
row.Pool = nil
row.Report = report_map[row.Report.ID]
report, ok := report_map[row.Report.ID]
if !ok {
log.Debug().Int32("id", row.Report.ID).Msg("failed to got report")
continue
}
row.Report = report
}
if row.Address.Street == "" {
row.Address = nil