diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:27:58 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:28:25 +0100 |
commit | 7d53ee73f323b04757a78e83dcbe49c872d481eb (patch) | |
tree | 5a5ba68d74ca96a97cce6a4cd054f42f28f86b49 /app/assets/javascripts/components/reducers/modal.jsx | |
parent | da5d3662305b3d28af9e88a7168f3a1702351a9a (diff) |
Fix #238 - Add "favourites" column
Diffstat (limited to 'app/assets/javascripts/components/reducers/modal.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/modal.jsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/components/reducers/modal.jsx b/app/assets/javascripts/components/reducers/modal.jsx index b529b6aa8..ac53ea210 100644 --- a/app/assets/javascripts/components/reducers/modal.jsx +++ b/app/assets/javascripts/components/reducers/modal.jsx @@ -8,14 +8,14 @@ const initialState = Immutable.Map({ export default function modal(state = initialState, action) { switch(action.type) { - case MEDIA_OPEN: - return state.withMutations(map => { - map.set('url', action.url); - map.set('open', true); - }); - case MODAL_CLOSE: - return state.set('open', false); - default: - return state; + case MEDIA_OPEN: + return state.withMutations(map => { + map.set('url', action.url); + map.set('open', true); + }); + case MODAL_CLOSE: + return state.set('open', false); + default: + return state; } }; |