Merge pull request #1528 from omnivore-app/fix/notification-image

Fix imageUrl being null in the sendNotification data
This commit is contained in:
Hongbo Wu 2022-12-09 18:21:22 +08:00 committed by GitHub
commit 0e6f9f3f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ interface Page {
isArchived: boolean
readingProgressPercent: number
title: string
image?: string
image: string | null
}
interface Label {

View file

@ -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