mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: dropping a folder onto the folder it is already in no longer fails with Folder already exists (#30169)
This commit is contained in:
parent
2690d04cac
commit
57063aaad8
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ async def update_folder_parent_id_by_id(
|
|||
form_data.parent_id, user.id, folder.name, db=db
|
||||
)
|
||||
|
||||
if existing_folder:
|
||||
if existing_folder and existing_folder.id != id:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
detail=ERROR_MESSAGES.DEFAULT('Folder already exists'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue