mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #966] Specific iteration optimization #50937
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?
Originally created by @Carlos-err406 on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/966
Bug Report
Description
this is not actually a big deal but i was skimming trough the codebase working on another issue and saw an unnecesary double loop first to filter and then to present the
<option>s, see image below.Bug Summary:
this section of the code could be optimized with just a conditional
Steps to Reproduce:
src/lib/components/chat/Settings/Interface.svelte lines 194-198
Expected Behavior:
do just one iteration
Actual Behavior:
does two iterations
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):

Installation Method
none
Additional Information
none
@Carlos-err406 commented on GitHub (Feb 29, 2024):
i would like to open a PR for this if thats ok, already solved in a fork
@Carlos-err406 commented on GitHub (Feb 29, 2024):
i just found another loop like that one
@Carlos-err406 commented on GitHub (Mar 1, 2024):
in the end there were several (5 more) all of them addressed on #969 (^^")