Skip to content
Snippets Groups Projects

Resolve "Provide URL representation for every object"

Merged Jonathan Weth requested to merge 871-provide-url-representation-for-every-object into master
11 files
+ 172
48
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -20,7 +20,7 @@
v-if="
myNotifications &&
myNotifications.person &&
myNotifications.person.notifications.length > 0
unreadNotifications.length > 0
"
>
mdi-bell-badge-outline
@@ -38,7 +38,7 @@
v-if="
myNotifications.person &&
myNotifications.person.notifications &&
unreadNotifications.length
myNotifications.person.notifications.length
"
>
<v-subheader>{{ $t("notifications.notifications") }}</v-subheader>
@@ -88,7 +88,9 @@ export default {
},
computed: {
unreadNotifications() {
return this.myNotifications.filter((n) => !n.read);
return this.myNotifications.person.notifications
? this.myNotifications.person.notifications.filter((n) => !n.read)
: [];
},
},
};
Loading