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 4b022dd commit 932f24cCopy full SHA for 932f24c
client/modules/IDE/reducers/files.js
@@ -116,7 +116,7 @@ function sortedChildrenId(state, children) {
116
return childrenArray.map(child => child.id);
117
}
118
119
-function udpateParent(state, action) {
+function updateParent(state, action) {
120
return state.map((file) => {
121
if (file.id === action.parentId) {
122
const newFile = Object.assign({}, file);
@@ -165,7 +165,7 @@ const files = (state, action) => {
165
case ActionTypes.CREATE_FILE: // eslint-disable-line
166
{
167
const newState = [
168
- ...udpateParent(state, action),
+ ...updateParent(state, action),
169
170
name: action.name,
171
id: action.id,
0 commit comments