Skip to content

Commit

Permalink
fix: add missing notification event type (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma11X authored Mar 29, 2024
1 parent 1b18904 commit 82d962a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82d962a

Please sign in to comment.