Open oldrich-svec opened 2 years ago
I propose to change
commentModel.hasAttachments = function() { return commentModel.attachments.length > 0; }
to
commentModel.hasAttachments = function() { return !!commentModel.attachments && commentModel.attachments.length > 0; }
as commentModel does not always contain attachments property 👍
commentModel
attachments
I propose to change
to
as
commentModel
does not always containattachments
property 👍