Fix imageUrl being null in the sendNotification data

This commit is contained in:
Hongbo Wu 2022-12-09 18:07:53 +08:00
parent f3f1dfc69c
commit eba75f7571
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