Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created January 13, 2017 14:42
Show Gist options
  • Save justinvdm/b7d4af043c4f8a53307479cdb2719971 to your computer and use it in GitHub Desktop.
Save justinvdm/b7d4af043c4f8a53307479cdb2719971 to your computer and use it in GitHub Desktop.
diff --git a/src/containers/CallNoteListContainer.js b/src/containers/CallNoteListContainer.js
index c9a4dad..65759a4 100644
--- a/src/containers/CallNoteListContainer.js
+++ b/src/containers/CallNoteListContainer.js
@@ -7,7 +7,7 @@ import { chooseCallNote } from 'src/actions/callNotes';
// TODO handle call notes without activities once we have designs for this
-export const mapStateToProps = (state, { activityId } = {}) => {
+export const mapStateToProps = (state, { activityId }) => {
let callNotes = getCallNotes(state);
if (!isUndefined(activityId)) callNotes = filter(callNotes, { callActivity: activityId });
return { callNotes };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment