fix(web-admin): add type cast to NotificationModal initial prop

TypeScript strict check rejects NotificationItem|{} union as
Partial<CreateNotificationPayload>&{id?}. Add explicit cast to satisfy
the type checker without changing runtime behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-07 23:09:35 -08:00
parent 66a454df93
commit 3453731bc8
1 changed files with 2 additions and 2 deletions

View File

@ -691,9 +691,9 @@ export default function NotificationsPage() {
{modal && (
<NotificationModal
initial={
modal.mode === 'edit'
(modal.mode === 'edit'
? { ...modal.item, id: modal.item.id }
: {}
: {}) as Partial<CreateNotificationPayload> & { id?: string }
}
allTags={allTags}
onSave={handleSave}