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 71e272e commit 73a098cCopy full SHA for 73a098c
1 file changed
client/modules/IDE/reducers/projects.js
@@ -15,12 +15,17 @@ const sketches = (state = [], action) => {
15
});
16
}
17
case ActionTypes.RENAME_PROJECT: {
18
- return state.map((sketch) => {
+ const updatedproject = state.projects.map((sketch) => {
19
if (sketch.id === action.payload.id) {
20
return { ...sketch, name: action.payload.name };
21
22
return sketch;
23
24
+
25
+ return {
26
+ ...state,
27
+ projects: updatedproject
28
+ };
29
30
default:
31
return state;
0 commit comments