Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

full working #195

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
complete
  • Loading branch information
serjt12 committed Jan 25, 2018
commit a736271b3a3fa0aead40b125da290d2b30e44f07
5 changes: 3 additions & 2 deletions src/reducers/reducer_posts.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import _ from "lodash";
import { FETCH_POSTS, FETCH_POST } from "../actions";
import { FETCH_POSTS, FETCH_POST, DELETE_POST } from "../actions";

export default function(state = {}, action) {
switch (action.type) {

case DELETE_POST:
return _.omit(state, action.payload);

case FETCH_POST:
// const post = action.payload.data;
Expand Down