Created
December 22, 2015 19:22
-
-
Save arackaf/49d177fc1dc44f712c72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function subjectsReducer(state = initialSubjectsState(), action = {}) { | |
switch (action.type) { | |
case LOAD_SUBJECTS_RESULTS: | |
return Object.assign({}, state, {list: stackAndGetTopLevelSubjects(action.subjects)}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment