Fix load attributes

stable
Álex Hermida 2018-08-06 17:27:38 +02:00 committed by Alex Hermida
parent 7281f56fe2
commit 156f313e04
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class ProjectValuesController extends taiga.Controller
loadValues: =>
return @rs[@scope.resource].listValues(@scope.projectId, @scope.type).then (values) =>
if values.length
@scope.values = values
@scope.maxValueOrder = _.maxBy(values, "order").order
return values