fetch pdf data only if it's missing from LinkedItem

This commit is contained in:
Satindar Dhillon 2022-05-27 10:44:08 -07:00
parent c08c710601
commit 2918cbcdf5

View file

@ -217,7 +217,7 @@ extension DataService {
linkedItem.isArchived = item.isArchived
linkedItem.contentReader = item.contentReader
if linkedItem.isPDF {
if linkedItem.isPDF, linkedItem.pdfData == nil {
do {
try self.fetchPDFData(slug: linkedItem.unwrappedSlug, pageURLString: linkedItem.unwrappedPageURLString)
} catch {