Skip to content

Commit

Permalink
[B] Fix issue with project text position not updating
Browse files Browse the repository at this point in the history
[Fixes #336]
  • Loading branch information
SMaxOwok committed May 17, 2017
1 parent 9f3aa4c commit 2c4f814
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions api/app/lib/updaters/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ module Updaters
class Text
include ::Updaters

def update(model)
@model = model
update_without_save(model)
save_model(model)
update_position(model)
model
end

end
end
1 change: 0 additions & 1 deletion client/src/containers/backend/ProjectDetail/Texts.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ class ProjectDetailTexts extends PureComponent {
}

handleTextDown(event, text) {
const position = this.positionInCategory(text);
let targetCategory = text.relationships.category;
let move = "down";
if (this.isPublishedText(text)) return this.handleTextUnpublish(text);
Expand Down

0 comments on commit 2c4f814

Please sign in to comment.