mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 01:40:33 -04: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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user