mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 09:46:07 -04:00
fix: keep the background image chosen while creating a folder from the sidebar (#30218)
This commit is contained in:
@@ -306,7 +306,7 @@
|
||||
folders = folderMap;
|
||||
};
|
||||
|
||||
const createFolder = async ({ name, data, parent_id }) => {
|
||||
const createFolder = async ({ name, data, meta, parent_id }) => {
|
||||
name = name?.trim();
|
||||
if (!name) {
|
||||
toast.error($i18n.t('Folder name cannot be empty.'));
|
||||
@@ -343,6 +343,7 @@
|
||||
const res = await createNewFolder(localStorage.token, {
|
||||
name,
|
||||
data,
|
||||
meta,
|
||||
parent_id
|
||||
}).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
|
||||
Reference in New Issue
Block a user