Use publicreport card component on planning page
This commit is contained in:
parent
0289bf5756
commit
69eabe4e85
4 changed files with 33 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue