mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #13883] [MERGED] Fix: Unintentional toggling of model status on the workspace page. #46370
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/13883
Author: @tremlin
Created: 5/14/2025
Status: ✅ Merged
Merged: 5/14/2025
Merged by: @tjbck
Base:
dev← Head:fix-workspace-model-unintended-toggle📝 Commits (1)
6b6ce36fix: add unique key to model list to avoid state confusion when filtering📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/workspace/Models.svelte(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
When using the search bar (and thus changing the filtered model list), Svelte reused the same DOM containers for different models. This triggered the
onchangeevent of theSwitchcomponent when an inactive model was replaced in the list by an active one and vice versa, resulting in the unintended toggling of the activation status of models. The provided fix ties the DOM container to the model, eliminating any confusion about the state.Screenshots or Videos
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.