mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	chore: Check assignee exists or not before rendering the assignee avatar (#7104)
This commit is contained in:
		@@ -37,7 +37,7 @@
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
              <thumbnail
 | 
			
		||||
                v-if="notificationItem.primary_actor.meta.assignee"
 | 
			
		||||
                v-if="hasAssignee(notificationItem)"
 | 
			
		||||
                :src="notificationItem.primary_actor.meta.assignee.thumbnail"
 | 
			
		||||
                size="16px"
 | 
			
		||||
                :username="notificationItem.primary_actor.meta.assignee.name"
 | 
			
		||||
@@ -127,6 +127,9 @@ export default {
 | 
			
		||||
        });
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    hasAssignee(notification) {
 | 
			
		||||
      return notification.primary_actor.meta?.assignee;
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user