Skip to content

Commit 765b0a6

Browse files
committed
update reducer to use correct project state after obj structure changes
1 parent 0659881 commit 765b0a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/modules/IDE/reducers/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const sketches = (state = [], action) => {
55
case ActionTypes.SET_PROJECTS:
66
return action.projects;
77
case ActionTypes.DELETE_PROJECT:
8-
return state.filter((sketch) => sketch.id !== action.id);
8+
return state.projects.filter((sketch) => sketch.id !== action.id);
99
case ActionTypes.CHANGE_VISIBILITY: {
1010
return state.map((sketch) => {
1111
if (sketch.id === action.payload.id) {

0 commit comments

Comments
 (0)