mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 11:33:29 -05:00
Merge pull request #19024 from overleaf/mj-mobile-rename-modal
[web] Update project name in rename modal when project name changes GitOrigin-RevId: 080d97b4d279fe54cc9530cea3efb1212da3041c
This commit is contained in:
parent
381795c5a2
commit
69205629bf
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ function RenameProjectModal({
|
||||||
[newProjectName, project]
|
[newProjectName, project]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setNewProjectName(project.name)
|
||||||
|
}, [project.name])
|
||||||
|
|
||||||
const handleSubmit = useCallback(
|
const handleSubmit = useCallback(
|
||||||
event => {
|
event => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
Loading…
Reference in a new issue