Explorar o código

Add guard to check if post exists on notification

sbkwgh %!s(int64=7) %!d(string=hai) anos
pai
achega
482b71fcc5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      frontend/src/components/NotificationButton.vue

+ 1 - 0
frontend/src/components/NotificationButton.vue

@@ -32,6 +32,7 @@
 			<div class='notification_button__menu'>
 				<div
 					v-for='(notification, index) in notifications'
+					v-if='notification.PostNotification.Post'
 					class='notification_button__menu__item'
 					:class='{
 						"notification_button__menu__item--uninteracted": !notification.interacted,