mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
fix renaming exports with a slash (#16588)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user