fix: stringify rawValue in brunoVarInfo (#6281)

This commit is contained in:
Pragadesh-45
2025-12-03 18:27:12 +05:30
committed by Bijin A B
parent 4d3cfbd2eb
commit c8fc7cbcb1

View File

@@ -308,7 +308,7 @@ export const renderVarInfo = (token, options) => {
// Create CodeMirror instance
const cmEditor = CodeMirror(editorContainer, {
value: rawValue, // Use raw value (e.g., {{echo-host}} not resolved value)
value: typeof rawValue === 'string' ? rawValue : String(rawValue), // Use raw value (e.g., {{echo-host}} not resolved value) (ensure it's always a string for CodeMirror) #usebruno/bruno/#6265
mode: 'brunovariables',
theme: cmTheme,
lineWrapping: true,