fix: Show DefaultFiltersSelector for global toggleable filters (#123) (#20066)

Co-authored-by: Tim Baek <tim@openwebui.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Classic298
2025-12-21 04:50:36 -05:00
committed by GitHub
co-authored by Tim Baek Claude
parent 90c0c5da00
commit 0b0962a2ae
@@ -727,8 +727,7 @@
/> />
</div> </div>
{#if filterIds.length > 0} {@const toggleableFilters = $functions.filter(
{@const toggleableFilters = ($functions ?? []).filter(
(func) => (func) =>
func.type === 'filter' && func.type === 'filter' &&
(filterIds.includes(func.id) || func?.is_global) && (filterIds.includes(func.id) || func?.is_global) &&
@@ -744,7 +743,6 @@
</div> </div>
{/if} {/if}
{/if} {/if}
{/if}
{#if ($functions ?? []).filter((func) => func.type === 'action').length > 0} {#if ($functions ?? []).filter((func) => func.type === 'action').length > 0}
<div class="my-2"> <div class="my-2">