mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: nil pointer dereference
chore: allow to share labels publicly on settings page
This commit is contained in:
@ -136,7 +136,10 @@ func (s *Summary) FillMissing() {
|
||||
}
|
||||
|
||||
// construct dummy item for all missing types
|
||||
presentType, _ := s.findFirstPresentType()
|
||||
presentType, err := s.findFirstPresentType()
|
||||
if err != nil {
|
||||
return // all types are either zero or missing entirely, nothing to fill
|
||||
}
|
||||
for _, t := range missingTypes {
|
||||
s.FillBy(presentType, t)
|
||||
}
|
||||
|
Reference in New Issue
Block a user