Jelajahi Sumber

Add guard to check if post exists on notification

sbkwgh 7 tahun lalu
induk
melakukan
482b71fcc5
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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,