mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[PR #2478] [MERGED] feat make stronger #21013
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/2478
Author: @Yanyutin753
Created: 5/22/2024
Status: ✅ Merged
Merged: 5/22/2024
Merged by: @tjbck
Base:
dev← Head:chat-message📝 Commits (1)
bf61406feat make stronger📊 Changes
1 file changed (+2 additions, -4 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+2 -4)📄 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
If the
messagearray might containundefinedornullvalues, or themessageobject might not have acontentproperty, the modified code will be safer because it avoids potential errors. It is also more concise and robust as it uses optional chaining to prevent possible errors, and it accomplishes filtering with just one.filter()call.Has passed the self-test
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.