Commit 6aeb99c9 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Add existence check to find the note.

parent 5604348f
......@@ -19,7 +19,7 @@ export const notesById = state => state.notes.reduce((acc, note) => {
const reverseNotes = array => array.slice(0).reverse();
const isLastNote = (note, state) => !note.system &&
state.userData !== undefined &&
state.userData !== undefined && note.author &&
note.author.id === state.userData.id;
export const getCurrentUserLastNote = state => _.flatten(
......
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