diff --git a/pkg/models/list.go b/pkg/models/list.go index 4c6515d28a..52fb995ac8 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