{"size": 335, "ext": "js", "max_stars_repo_path": "src/core_plugins/kibana/public/dashboard/reducers/panel.js", "max_stars_repo_name": "82ndAirborneDiv/kibana", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/core_plugins/kibana/public/dashboard/reducers/panel.js", "max_issues_repo_name": "82ndAirborneDiv/kibana", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/core_plugins/kibana/public/dashboard/reducers/panel.js", "max_forks_repo_name": "82ndAirborneDiv/kibana", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7058823529, "max_line_length": 72, "alphanum_fraction": 0.6686567164}
import { handleActions } from 'redux-actions';
import _ from 'lodash';

import {
  updatePanel,
} from '../actions';

export const panel = handleActions({
  [updatePanel]: (state, { payload }) => _.defaultsDeep(payload, state),
}, {
  panelIndex: undefined,
  id: undefined,
  type: undefined,
  version: undefined,
  gridData: {}
});
