enh: folder background image

This commit is contained in:
Timothy Jaeryang Baek
2025-09-16 13:32:42 -05:00
parent d46b7b8f1b
commit 2a234829f5
4 changed files with 87 additions and 3 deletions
@@ -282,7 +282,7 @@
}
};
const updateHandler = async ({ name, data }) => {
const updateHandler = async ({ name, meta, data }) => {
if (name === '') {
toast.error($i18n.t('Folder name cannot be empty.'));
return;
@@ -295,6 +295,7 @@
const res = await updateFolderById(localStorage.token, folderId, {
name,
...(meta ? { meta } : {}),
...(data ? { data } : {})
}).catch((error) => {
toast.error(`${error}`);