Verified Commit 8ec49192 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix props warning in MemberList

parent 23311e49
...@@ -5,7 +5,7 @@ export const FAILURE = 'MEMBERS_FAILURE'; ...@@ -5,7 +5,7 @@ export const FAILURE = 'MEMBERS_FAILURE';
export const MORE = 'MEMBERS_MORE'; export const MORE = 'MEMBERS_MORE';
export const MORE_SUCCESS = 'MEMBERS_MORE_SUCCESS'; export const MORE_SUCCESS = 'MEMBERS_MORE_SUCCESS';
export function members(keywords = null) { export function members(keywords = '') {
return { return {
type: MEMBERS, type: MEMBERS,
payload: { keywords }, payload: { keywords },
......
...@@ -11,7 +11,7 @@ const mapStateToProps = state => ({ ...@@ -11,7 +11,7 @@ const mapStateToProps = state => ({
}); });
const mapDispatchToProps = dispatch => ({ const mapDispatchToProps = dispatch => ({
loadMembers: (keywords = null) => dispatch(memberActions.members(keywords)), loadMembers: (keywords = '') => dispatch(memberActions.members(keywords)),
loadMoreMembers: url => dispatch(memberActions.more(url)), loadMoreMembers: url => dispatch(memberActions.more(url)),
}); });
......
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