parent
f2723fc3e9
commit
52b70f0428
3 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ const pollSuccessCallBack = (resp, commit, state, getters) => {
|
|||
});
|
||||
}
|
||||
|
||||
commit(types.SET_LAST_FETCHED_AT, resp.lastFetchedAt);
|
||||
commit(types.SET_LAST_FETCHED_AT, resp.last_fetched_at);
|
||||
|
||||
return resp;
|
||||
};
|
||||
|
|
|
@ -90,15 +90,15 @@ export default {
|
|||
const notes = [];
|
||||
|
||||
notesData.forEach((note) => {
|
||||
const nn = Object.assign({}, note);
|
||||
|
||||
// To support legacy notes, should be very rare case.
|
||||
if (note.individual_note && note.notes.length > 1) {
|
||||
note.notes.forEach((n) => {
|
||||
const nn = Object.assign({}, note);
|
||||
nn.notes = [n]; // override notes array to only have one item to mimick individual_note
|
||||
notes.push(nn);
|
||||
});
|
||||
} else {
|
||||
const nn = Object.assign({}, note);
|
||||
const oldNote = utils.findNoteObjectById(state.notes, note.id);
|
||||
nn.expanded = oldNote ? oldNote.expanded : note.expanded;
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ module NotesHelper
|
|||
reopenPath: reopen_issuable_path(issuable),
|
||||
notesPath: notes_url,
|
||||
totalNotes: issuable.discussions.length,
|
||||
lastFetchedAt: Time.now
|
||||
lastFetchedAt: Time.now.to_i
|
||||
|
||||
}.to_json
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue