Skip to content

Commit

Permalink
fix: load only the user's own notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Oct 23, 2024
1 parent 0a042c9 commit 1e246c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@
const { data: notifications } = await useAsyncData('directus_notifications', async () => {
return $directus.request(readNotifications({
// @ts-ignore
format: 'html',
filter: {
recipient: { _eq: user.id },
},
}));
}, { default: () => [] });
Expand Down

0 comments on commit 1e246c3

Please sign in to comment.