Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/selectors/stories.js

Summary

Maintainability
A
0 mins
Test Coverage
import { denormalizeAllScopes, storiesWithScope } from '../reducers/stories';

export const getStories = state => denormalizeAllScopes(state.stories);

export const getStoriesWithScope = (state, scope) => {
  const stories = getStories(state);
  return storiesWithScope(stories, scope);
};