mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 19:50:48 +00:00
fix check for name in filetree move
This commit is contained in:
parent
63fa024d98
commit
6ed181d52c
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ define [
|
|||
# since that would break the tree structure.
|
||||
return if @_isChildFolder(entity, parent_folder)
|
||||
# check if a doc/file/folder already exists with this name
|
||||
if @existsInThisFolder entity.name, parent_folder
|
||||
if @existsInThisFolder parent_folder, entity.name
|
||||
return @nameExistsError()
|
||||
# Wait for the http response before doing the move
|
||||
@ide.queuedHttp.post("/project/#{@ide.project_id}/#{entity.type}/#{entity.id}/move", {
|
||||
|
|
Loading…
Reference in a new issue