diff --git a/pkg/models/list.go b/pkg/models/list.go index 4c6515d2..52fb995a 100644 --- a/pkg/models/list.go +++ b/pkg/models/list.go @@ -402,7 +402,10 @@ func AddListDetails(lists []*List) (err error) { // Build it all into the lists slice for _, l := range lists { - l.BackgroundInformation = unsplashPhotos[l.BackgroundFileID] + // Only override the file info if we have info for unsplash backgrounds + if _, exists := unsplashPhotos[l.BackgroundFileID]; exists { + l.BackgroundInformation = unsplashPhotos[l.BackgroundFileID] + } } return