1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Need to check for this attributes existence before trying to use it

This commit is contained in:
Michael Abashian 2016-05-18 14:33:16 -04:00
parent ecf8d8765d
commit 526a1482b1

View File

@ -154,7 +154,7 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
descr += ' to ';
}
}
descr_nolink += obj2 + ' ' + obj2_obj.name;
descr_nolink += (obj2_obj && obj2_obj.name) ? obj2 + ' ' + obj2_obj.name : obj2 + ' ';
if (activity.object_association === 'admins') {
if (activity.operation === 'disassociate') {
descr_nolink += ' from being an admin of ';