mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
check if content value is present when opening web reader from db
This commit is contained in:
parent
245c40e685
commit
8aec8005ce
1 changed files with 2 additions and 2 deletions
|
|
@ -50,10 +50,10 @@ class WebReaderViewModel @Inject constructor(
|
|||
withContext(Dispatchers.IO) {
|
||||
val persistedItem = dataService.db.savedItemDao().getSavedItemWithLabelsAndHighlights(slug)
|
||||
|
||||
if (persistedItem?.savedItem != null) {
|
||||
if (persistedItem?.savedItem?.content != null) {
|
||||
val articleContent = ArticleContent(
|
||||
title = persistedItem.savedItem.title,
|
||||
htmlContent = persistedItem.savedItem.content ?: "",
|
||||
htmlContent = persistedItem.savedItem.content,
|
||||
highlights = persistedItem.highlights,
|
||||
contentStatus = "SUCCEEDED",
|
||||
objectID = "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue