mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: keep the background image chosen while creating a folder from the sidebar (#30218)
This commit is contained in:
parent
e8bd0661d3
commit
9688d32764
1 changed files with 2 additions and 1 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue