mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #23864] [CLOSED] fix: prevent InputVariablesModal crash (variable undefined) #114725
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/23864
Author: @moreveal
Created: 4/18/2026
Status: ❌ Closed
Base:
dev← Head:fix/input-variables-crash📝 Commits (1)
11731ccfix: prevent InputVariablesModal crash (variable undefined)📊 Changes
1 file changed (+76 additions, -73 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/InputVariablesModal.svelte(+76 -73)📄 Description
Pull Request Checklist
devDescription
Fixes a runtime crash in
InputVariablesModal.sveltewhen rendering input variables.The modal could throw:
Root cause was unsafe iteration using
Object.keys+ indexing (variables[key]), which resulted in invalid compiled code and undefined access.Replaced iteration with
Object.entriesand removed unsafe access pattern.Changelog Entry
Description
Added
Changed
Object.keys+ indexing toObject.entriesiteration inInputVariablesModal.svelteDeprecated
Removed
Fixed
ReferenceError: variable is not definedwhen opening Input Variables modalSecurity
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.