Skip to content

Commit 932f24c

Browse files
committed
corrected a typo
1 parent 4b022dd commit 932f24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/modules/IDE/reducers/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function sortedChildrenId(state, children) {
116116
return childrenArray.map(child => child.id);
117117
}
118118

119-
function udpateParent(state, action) {
119+
function updateParent(state, action) {
120120
return state.map((file) => {
121121
if (file.id === action.parentId) {
122122
const newFile = Object.assign({}, file);
@@ -165,7 +165,7 @@ const files = (state, action) => {
165165
case ActionTypes.CREATE_FILE: // eslint-disable-line
166166
{
167167
const newState = [
168-
...udpateParent(state, action),
168+
...updateParent(state, action),
169169
{
170170
name: action.name,
171171
id: action.id,

0 commit comments

Comments
 (0)