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.
2 parents 5ec16c8 + 313fbe0 commit 225222bCopy full SHA for 225222b
1 file changed
client/modules/IDE/reducers/projects.js
@@ -20,12 +20,17 @@ const sketches = (state = [], action) => {
20
}
21
22
case ActionTypes.RENAME_PROJECT: {
23
- return state.map((sketch) => {
+ const updatedproject = state.projects.map((sketch) => {
24
if (sketch.id === action.payload.id) {
25
return { ...sketch, name: action.payload.name };
26
27
return sketch;
28
});
29
+
30
+ return {
31
+ ...state,
32
+ projects: updatedproject
33
+ };
34
35
default:
36
return state;
0 commit comments