Commit 39f09a27 authored by Fatih Acet's avatar Fatih Acet
Browse files

IssueNotesRefactor: Add existence check to find the note.

parent 8e1cf6544ae8
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
const reverseNotes = array => array.slice(0).reverse(); const reverseNotes = array => array.slice(0).reverse();
const isLastNote = (note, state) => !note.system && const isLastNote = (note, state) => !note.system &&
state.userData !== undefined && state.userData !== undefined && note.author &&
note.author.id === state.userData.id; note.author.id === state.userData.id;
export const getCurrentUserLastNote = state => _.flatten( export const getCurrentUserLastNote = state => _.flatten(
......
Supports Markdown
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