You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
362 B

  1. import { STORE_HYDRATE } from '../actions/store';
  2. import Immutable from 'immutable';
  3. const initialState = Immutable.Map({
  4. accept_content_types: [],
  5. });
  6. export default function meta(state = initialState, action) {
  7. switch(action.type) {
  8. case STORE_HYDRATE:
  9. return state.merge(action.state.get('media_attachments'));
  10. default:
  11. return state;
  12. }
  13. };