From 0edbd9bf40a49669db046bed43f2c624a4860ce3 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 16 Sep 2015 07:40:07 +0200 Subject: [PATCH] Fixed editing new post notes duplicating them --- public_html/js/Presenters/PostNotesPresenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Presenters/PostNotesPresenter.js b/public_html/js/Presenters/PostNotesPresenter.js index 41660f3e..b19e191b 100644 --- a/public_html/js/Presenters/PostNotesPresenter.js +++ b/public_html/js/Presenters/PostNotesPresenter.js @@ -125,7 +125,7 @@ App.Presenters.PostNotesPresenter = function( promise.wait(p) .then(function(response) { hideForm(); - postNote.id = response.json.id; + postNote.id = response.json.note.id; postNote.$element.data('postNote', postNote); render(); }).fail(function(response) {