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:
Mathias Jakobsen 2024-06-20 15:30:15 +01:00 committed by Copybot
parent 381795c5a2
commit 69205629bf

View file

@ -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()