1
0
mirror of https://github.com/elk-zone/elk synced 2025-01-20 14:22:57 +09:00

fix: add missing notification event type (#2714)

This commit is contained in:
Sma11X 2024-03-29 23:31:53 +08:00 committed by GitHub
parent 1b189043e4
commit 82d962a54b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,10 +34,10 @@ export function usePaginator<T, P, U = T>(
return
for await (const entry of stream) {
if (entry.event === 'update') {
if (entry.event === 'update' || entry.event === 'notification') {
const status = entry.payload
if ('uri' in entry)
if ('uri' in status)
cacheStatus(status, undefined, true)
const index = prevItems.value.findIndex((i: any) => i.id === status.id)