mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-05 22:34:25 +00:00
don't do a project rename if the name is the same
this prevents double renaming which happens when you press enter as well as no name change
This commit is contained in:
parent
940586f654
commit
f108c01ea5
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ define [
|
|||
newName = $scope.inputs.name
|
||||
if !newName? or newName.length == 0 or newName.length > MAX_PROJECT_NAME_LENGTH
|
||||
return
|
||||
if $scope.project.name == newName
|
||||
return
|
||||
$scope.project.name = newName
|
||||
settings.saveProjectSettings({name: $scope.project.name})
|
||||
|
||||
|
|
Loading…
Reference in a new issue