Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
b9f73858
Unverified
Commit
b9f73858
authored
Jul 06, 2021
by
bunsenstraat
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1360 from ethereum/bunsenstraat-patch-1-1
prevent recreating directories after deleting a file in a deleted directory
parents
02427032
d95a0404
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fileSystem.ts
libs/remix-ui/file-explorer/src/lib/reducers/fileSystem.ts
+3
-2
No files found.
libs/remix-ui/file-explorer/src/lib/reducers/fileSystem.ts
View file @
b9f73858
...
...
@@ -266,8 +266,8 @@ const removePath = (root, path: string, pathName, files) => {
return
Array
.
isArray
(
cur
)
?
[...
acc
,
...
cur
]
:
[...
acc
,
cur
]
},
[])
const
prevFiles
=
_
.
get
(
files
,
_path
)
prevFiles
&&
prevFiles
.
child
&&
prevFiles
.
child
[
pathName
]
&&
delete
prevFiles
.
child
[
pathName
]
if
(
prevFiles
)
{
prevFiles
.
child
&&
prevFiles
.
child
[
pathName
]
&&
delete
prevFiles
.
child
[
pathName
]
files
=
_
.
set
(
files
,
_path
,
{
isDirectory
:
true
,
path
,
...
...
@@ -275,6 +275,7 @@ const removePath = (root, path: string, pathName, files) => {
type
:
extractNameFromKey
(
path
).
indexOf
(
'gist-'
)
===
0
?
'gist'
:
'folder'
,
child
:
prevFiles
?
prevFiles
.
child
:
{}
})
}
return
files
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment