Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek
2025-07-13 01:50:01 +04:00
co-authored by Classic298
parent 80f3c97668
commit 6176dba3c9
3 changed files with 11 additions and 6 deletions
@@ -18,7 +18,7 @@
import {
deleteFolderById,
updateFolderIsExpandedById,
updateFolderNameById,
updateFolderById,
updateFolderParentIdById
} from '$lib/apis/folders';
import { toast } from 'svelte-sonner';
@@ -278,7 +278,7 @@
name = name.trim();
folders[folderId].name = name;
const res = await updateFolderNameById(localStorage.token, folderId, name).catch((error) => {
const res = await updateFolderById(localStorage.token, folderId, { name }).catch((error) => {
toast.error(`${error}`);
folders[folderId].name = currentName;