client/src/actions/notesActions.js
changeset 15 4a8bbd314a46
parent 12 48ddaa42b810
child 16 e67cd18cc594
--- a/client/src/actions/notesActions.js	Thu Jun 01 15:20:31 2017 +0200
+++ b/client/src/actions/notesActions.js	Thu Jun 01 16:15:08 2017 +0200
@@ -2,13 +2,14 @@
 
 import * as types from '../constants/actionTypes';
 
-export const addNote = (session, text) => {
+export const addNote = (session, data) => {
   return {
     type: types.ADD_NOTE,
     note: {
       id: uuidV1(),
       session: session.id,
-      text: text,
+      raw: data.raw,
+      plain: data.plain
     }
   };
 }