mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-02 06:39:02 -05:00
[PR #12168] [MERGED] fix: Inconsistent value check in onMessageHandler() in Chat.svelte #38487
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12168
Author: @yak1ex
Created: 3/29/2025
Status: ✅ Merged
Merged: 3/29/2025
Merged by: @tjbck
Base:
dev← Head:fix_inconsistent_value_check_in_onMessageHandler_in_Chat_svelte📝 Commits (1)
c1f189aFix inconsistent value check.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+1 -1)📄 Description
Pull Request Checklist
Discussion here: https://github.com/open-webui/open-webui/discussions/11980
Before submitting, make sure you've checked the following:
devbranch.input:prompt:submitwas ignored withoutpromptset, now it is accepted and the specified text is submit, by my developping Action function.Changelog Entry
Description
onMessageHandler()method ofChat.svelte.input:prompt:submitevent case, there seems to be an inconsistency between what is checked and what is used. The method calls submitPrompt(event.data.text) but it checks if prompt !== '' instead of checking event.data.text. Since prompt is cleared in submitPrompt(), this check has no meaningful purpose.Added
Changed
Deprecated
Removed
Fixed
input:prompt:submitevent.Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.