fixed null on description in client

This commit is contained in:
Henry Oswald 2014-07-17 12:02:56 +01:00
parent 4bc47bd2b2
commit d06848d109

View file

@ -39,7 +39,7 @@ define [
$scope.$watch $scope.problemTalkingToTemplateApi, refreshPublishedStatus
$scope.updateProjectDescription = ->
description = $scope.template.description
description = $scope.templateDetails.description
if description?
ide.socket.emit 'updateProjectDescription', description, (err) =>
if err? then return problemTalkingToTemplateApi()