We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0659881 commit 765b0a6Copy full SHA for 765b0a6
1 file changed
client/modules/IDE/reducers/projects.js
@@ -5,7 +5,7 @@ const sketches = (state = [], action) => {
5
case ActionTypes.SET_PROJECTS:
6
return action.projects;
7
case ActionTypes.DELETE_PROJECT:
8
- return state.filter((sketch) => sketch.id !== action.id);
+ return state.projects.filter((sketch) => sketch.id !== action.id);
9
case ActionTypes.CHANGE_VISIBILITY: {
10
return state.map((sketch) => {
11
if (sketch.id === action.payload.id) {
0 commit comments