Skip to content

Commit c8fc7cb

Browse files
Pragadesh-45bijin-bruno
authored andcommitted
fix: stringify rawValue in brunoVarInfo (#6281)
1 parent 4d3cfbd commit c8fc7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bruno-app/src/utils/codemirror/brunoVarInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export const renderVarInfo = (token, options) => {
308308

309309
// Create CodeMirror instance
310310
const cmEditor = CodeMirror(editorContainer, {
311-
value: rawValue, // Use raw value (e.g., {{echo-host}} not resolved value)
311+
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
312312
mode: 'brunovariables',
313313
theme: cmTheme,
314314
lineWrapping: true,

0 commit comments

Comments
 (0)