2017-07-09 10:16:08 +00:00
|
|
|
import { STORE_HYDRATE } from '../actions/store';
|
2017-05-08 14:49:53 +00:00
|
|
|
import Immutable from 'immutable';
|
|
|
|
|
|
|
|
const initialState = Immutable.Map({
|
|
|
|
accept_content_types: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2017-07-09 10:16:08 +00:00
|
|
|
case STORE_HYDRATE:
|
2017-05-08 14:49:53 +00:00
|
|
|
return state.merge(action.state.get('media_attachments'));
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
};
|