fix renaming exports with a slash (#16588)

This commit is contained in:
Josh Hawkins authored and GitHub committed 2025-02-14 19:18:14 -07:00
1 parent 7b3556e4ad
commit 6bb1a5dfd2
3 files changed
+13 -5

No files matched your search

+4 -2
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();
}