From e2dc91e1347aff83791c26b2d3c622704e63873f Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 31 Oct 2014 09:50:51 +0100 Subject: [PATCH] Fixing js error if no tags --- app/coffee/modules/common/tags.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/coffee/modules/common/tags.coffee b/app/coffee/modules/common/tags.coffee index b327ce03..f9451dae 100644 --- a/app/coffee/modules/common/tags.coffee +++ b/app/coffee/modules/common/tags.coffee @@ -398,7 +398,7 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm) -> $scope.$watch $attrs.ngModel, (model) -> return if not model - if model.tags.length + if model.tags?.length hideAddTagButtonText() else showAddTagButtonText()