mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #20066] [MERGED] fix: Show DefaultFiltersSelector for global toggleable filters in model settings #48498
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/20066
Author: @Classic298
Created: 12/20/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @tjbck
Base:
dev← Head:filters📝 Commits (2)
df17617fix: Show DefaultFiltersSelector for global toggleable filters (#123)10d02b5Merge branch 'dev' into filters📊 Changes
1 file changed (+14 additions, -16 deletions)
View changed files
📝
src/lib/components/workspace/Models/ModelEditor.svelte(+14 -16)📄 Description
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
This PR fixes a bug where the DefaultFiltersSelector component in the Model Settings panel would not appear when only global toggleable filters were present (without any model-specific filters selected).
Problem:
Then: The DefaultFiltersSelector section would not render, preventing administrators from configuring per-model default toggle states for global filters.
Root Cause:
The DefaultFiltersSelector was wrapped in a guard condition {#if filterIds.length > 0} that checked for model-specific filters. Since global filters are not included in the filterIds array (they're automatically included via backend logic), this condition would fail even though global toggleable filters were present.
Solution:
Removed the outer filterIds.length > 0 condition, allowing the component to evaluate all toggleable filters (both model-specific via filterIds.includes(func.id) and global via func?.is_global) and render the DefaultFiltersSelector whenever any toggleable filters exist.
Impact:
Changed
Modified src/lib/components/workspace/Models/ModelEditor.svelte (lines 732-746) to remove the restrictive outer condition preventing DefaultFiltersSelector from rendering for global toggleable filters
Removed
Removed the outer {#if filterIds.length > 0} guard condition that was preventing DefaultFiltersSelector from displaying when only global filters were present
Fixed
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.