From c8fc7cbcb14286db1386651ed8cce5055aa5111b Mon Sep 17 00:00:00 2001 From: Pragadesh-45 <54320162+Pragadesh-45@users.noreply.github.com> Date: Wed, 3 Dec 2025 18:27:12 +0530 Subject: [PATCH] fix: stringify `rawValue` in `brunoVarInfo` (#6281) --- packages/bruno-app/src/utils/codemirror/brunoVarInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js b/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js index 22f75f5e8..332ba182b 100644 --- a/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js +++ b/packages/bruno-app/src/utils/codemirror/brunoVarInfo.js @@ -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,