Commit 91481002 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Fix broken discussion reply

parent 60f6b596
......@@ -86,7 +86,7 @@
this.isReplying = false;
},
saveReply({ note }) {
saveReply(note) {
const replyData = {
endpoint: this.newNotePath,
flashContainer: this.$el,
......@@ -94,7 +94,7 @@
in_reply_to_discussion_id: this.note.reply_id,
target_type: 'issue',
target_id: this.discussion.noteable_id,
note: { note },
note: { note: note },
full_data: true,
},
};
......
......@@ -49,7 +49,7 @@
},
methods: {
handleUpdate() {
this.$emit('handleFormUpdate', note);
this.$emit('handleFormUpdate', this.note);
},
editMyLastNote() {
if (this.note === '') {
......
......@@ -61,7 +61,8 @@
setNotesData: 'setNotesData',
setIssueData: 'setIssueData',
setUserData: 'setUserData',
setLastFetchedAt: 'setLastFetchedAt'
setLastFetchedAt: 'setLastFetchedAt',
setTargetNoteHash: 'setTargetNoteHash',
}),
getComponentName(note) {
if (note.isPlaceholderNote) {
......@@ -84,7 +85,7 @@
this.isLoading = false;
// Scroll to note if we have hash fragment in the page URL
Vue.nextTick(() => {
this.$nextTick(() => {
this.checkLocationHash();
});
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment