fix renaming exports with a slash (#16588)

This commit is contained in:
Josh Hawkins
2025-02-14 20:18:14 -06:00
committed by GitHub
parent 7b3556e4ad
commit 6bb1a5dfd2
3 changed files with 13 additions and 5 deletions

View File

@@ -83,9 +83,11 @@ function Exports() {
const onHandleRename = useCallback(
(id: string, update: string) => {
axios
.patch(`export/${id}/${encodeURIComponent(update)}`)
.patch(`export/${id}/rename`, {
name: update,
})
.then((response) => {
if (response.status == 200) {
if (response.status === 200) {
setDeleteClip(undefined);
mutate();
}