mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[PR #19939] [MERGED] fix: add null safety for tools, functions, and file input in ModelEditor.svelte #48451
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19939
Author: @silentoplayz
Created: 12/13/2025
Status: ✅ Merged
Merged: 12/14/2025
Merged by: @tjbck
Base:
dev← Head:fix/model-editor-null-safety📝 Commits (1)
fe7a8c8fix(model-editor): add null safety for tools, functions, and file input📊 Changes
1 file changed (+10 additions, -10 deletions)
View changed files
📝
src/lib/components/workspace/Models/ModelEditor.svelte(+10 -10)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
Improves robustness of
ModelEditor.svelteagainst potentially undefined stores and file inputs.Changed
?? []for$toolsand$functionsiterations.event.target?.resultin FileReader onload handler.inputFiles[0]?.['type']to prevent crashes on invalid file objects.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.