Bugfix: show proper error toast when user tries to rename project to conflicting name (#5613)
* Correct error toast behavior so rename error comes through * Add rename error state to E2E test
This commit is contained in:
@ -35,7 +35,9 @@ function ProjectCard({
|
||||
|
||||
function handleSave(e: FormEvent<HTMLFormElement>) {
|
||||
e.preventDefault()
|
||||
void handleRenameProject(e, project).then(() => setIsEditing(false))
|
||||
handleRenameProject(e, project)
|
||||
.then(() => setIsEditing(false))
|
||||
.catch(reportRejection)
|
||||
}
|
||||
|
||||
function getDisplayedTime(dateTimeMs: number) {
|
||||
|
Reference in New Issue
Block a user