Correct typo in get path

This commit is contained in:
Allen Snook 2018-10-16 13:07:34 -07:00
parent 2dfc410079
commit a7bbb4766d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import { ERROR } from 'store/constants';
* @return {Array} Notes
*/
function getNotes( state, query = {} ) {
return get( state, [ 'notes' ], getJsonString( query ), [] );
return get( state, [ 'notes', getJsonString( query ) ], [] );
}
export default {