Url encode export name

This commit is contained in:
Nicolas Mowen 2024-07-17 06:48:04 -06:00
parent d624d7b71e
commit 5e09368340

View File

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