Change _.sorBy to _.sortBy
parent
21b9369007
commit
5e77c42cc0
|
@ -126,7 +126,7 @@ class AttachmentsController extends taiga.Controller
|
||||||
return @repo.saveAll(@.attachments).then null, =>
|
return @repo.saveAll(@.attachments).then null, =>
|
||||||
for item in @.attachments
|
for item in @.attachments
|
||||||
item.revert()
|
item.revert()
|
||||||
@.attachments = _.sorBy(@.attachments, "order")
|
@.attachments = _.sortBy(@.attachments, "order")
|
||||||
|
|
||||||
# Remove one concrete attachment.
|
# Remove one concrete attachment.
|
||||||
removeAttachment: (attachment) ->
|
removeAttachment: (attachment) ->
|
||||||
|
|
Loading…
Reference in New Issue