mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #18301] [CLOSED] fix: handle non-json drop in RecursiveFolder #40376
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18301
Author: @silentoplayz
Created: 10/13/2025
Status: ❌ Closed
Base:
dev← Head:recursive-folder-drop-error📝 Commits (1)
98719c0fix: handle non-json drop in recursivefolder📊 Changes
1 file changed (+61 additions, -53 deletions)
View changed files
📝
src/lib/components/layout/Sidebar/RecursiveFolder.svelte(+61 -53)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
RecursiveFolder.sveltewhere an unhandledSyntaxErrorwould appear in the browser console if a user tried to drag and drop an item that was not valid JSON (like aNoteinto aFolder). TheonDropevent handler has been updated to gracefully catch this parsing error and log a user-friendly message instead, improving the stability and user experience of the drag-and-drop functionality.Changed
onDropevent handler insrc/lib/components/layout/Sidebar/RecursiveFolder.svelteto include atry...catchblock for robust error handling.Fixed
Additional Information
src/lib/components/common/Folder.sveltecomponent, ensuring consistent behavior across similar UI elements.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.