浏览代码

Add guard to check if post exists on notification

sbkwgh 7 年之前
父节点
当前提交
482b71fcc5
共有 1 个文件被更改,包括 1 次插入0 次删除
  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,