Explorar el Código

Add guard to check if post exists on notification

sbkwgh hace 7 años
padre
commit
482b71fcc5
Se han modificado 1 ficheros con 1 adiciones y 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,