mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix imageUrl being null in the sendNotification data
This commit is contained in:
parent
f3f1dfc69c
commit
eba75f7571
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ interface Page {
|
|||
isArchived: boolean
|
||||
readingProgressPercent: number
|
||||
title: string
|
||||
image?: string
|
||||
image: string | null
|
||||
}
|
||||
|
||||
interface Label {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ export const triggerActions = async (
|
|||
const data: NotificationData = {
|
||||
title: 'New page added to your library',
|
||||
body: filteredPage.title,
|
||||
image: filteredPage.image,
|
||||
image: filteredPage.image || undefined,
|
||||
}
|
||||
|
||||
const params = action.params
|
||||
|
|
|
|||
Loading…
Reference in a new issue