提交 91481002 编写于 作者: F Filipa Lacerda

[ci skip] Fix broken discussion reply

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册